User Tools

Site Tools


en:code:data:tcpserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
en:code:data:tcpserver [2011/04/20 20:35] – created jmgren:code:data:tcpserver [2011/09/24 23:37] – [listen] jmgr
Line 36: Line 36:
 === Syntax === === Syntax ===
 <code javascript> <code javascript>
-myObject.connect(address, port);+myObject.listen(address, port);
 </code> </code>
 <code javascript> <code javascript>
-myObject.connect(address);+myObject.listen(address);
 </code> </code>
 <code javascript> <code javascript>
-myObject.connect();+myObject.listen();
 </code> </code>
  
Line 76: Line 76:
  
 ==== nextPendingConnection ==== ==== nextPendingConnection ====
-Returns the next pending connection as a [[code:data:tcp|Tcp]] object that can be used to read and write to the client. You should store this object if you want to write to this client later.+Returns the next pending connection as a [[en:code:data:tcp|Tcp]] object that can be used to read and write to the client. You should store this object if you want to write to this client later.
  
 === Syntax === === Syntax ===
Line 84: Line 84:
  
 === Returns === === Returns ===
-  * (Tcp) the new client as a [[code:data:tcp|Tcp]] object+  * (Tcp) the new client as a [[en:code:data:tcp|Tcp]] object
  
 === Exceptions === === Exceptions ===
en/code/data/tcpserver.txt · Last modified: 2021/02/13 11:23 by 127.0.0.1