<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.oxeyegames.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=CreateDevice</id>
		<title>CreateDevice - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=CreateDevice"/>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=CreateDevice&amp;action=history"/>
		<updated>2026-06-04T09:21:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.oxeyegames.com/wiki/index.php?title=CreateDevice&amp;diff=47&amp;oldid=prev</id>
		<title>Jeb: Created page with '{{NetworkMethod | net.createDevice(isPrimitive) | Creates a new network device which can be used to connect with or host games.  There are currently two types of network devi...'</title>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=CreateDevice&amp;diff=47&amp;oldid=prev"/>
				<updated>2009-03-06T13:37:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;{{NetworkMethod | net.createDevice(isPrimitive) | Creates a new &lt;a href=&quot;/wiki/index.php?title=Network_device&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Network device (page does not exist)&quot;&gt;network device&lt;/a&gt; which can be used to connect with or host games.  There are currently two types of network devi...&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NetworkMethod&lt;br /&gt;
|&lt;br /&gt;
net.createDevice(isPrimitive)&lt;br /&gt;
|&lt;br /&gt;
Creates a new [[network device]] which can be used to connect with or host games.&lt;br /&gt;
&lt;br /&gt;
There are currently two types of network devices, the Daisy device and the &amp;quot;primitive&amp;quot; device. The Daisy device is used when you want to send Lua table data as game packets. The device will also perform a simple hand-shake check when a client connets, verifying that the client has the same game version as the host and that the host isn't full.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;primitive&amp;quot; device is used when you want to control the network data yourself. This device doesn't support the &amp;quot;sendPacket&amp;quot; methods, but use the &amp;quot;sendData&amp;quot; instead. This device is used when, for example, you are transmitting using traditional protocols such as HTTP or IRC.&lt;br /&gt;
|&lt;br /&gt;
{{MethodParam|isPrimitive|A boolean|Set this to true to get a &amp;quot;primitive&amp;quot; device.}}&lt;br /&gt;
|&lt;br /&gt;
The method returns a Lunamatic reference to a [[network device]].&lt;br /&gt;
}}&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   local myDevice = net.createDevice(false)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeb</name></author>	</entry>

	</feed>