en:code:data:tcp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| code:data:tcp [2011/01/27 21:06] – jmgr | en:code:data:tcp [2021/02/13 11:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| onConnected: | onConnected: | ||
| { | { | ||
| - | Console.print(" | + | Console.print(" |
| }, | }, | ||
| onDisconnected: | onDisconnected: | ||
| { | { | ||
| - | Console.print(" | + | Console.print(" |
| } | } | ||
| }); | }); | ||
| Line 60: | Line 60: | ||
| === Notes === | === Notes === | ||
| This method is asynchronous, | This method is asynchronous, | ||
| - | To known when a connection is made use the [[# | + | To know when a connection is made use the [[# |
| ==== write ==== | ==== write ==== | ||
| Line 78: | Line 78: | ||
| === Notes === | === Notes === | ||
| This method is asynchronous, | This method is asynchronous, | ||
| - | To known when the data has been sent use the [[# | + | To know when the data has been sent use the [[# |
| ==== writeText ==== | ==== writeText ==== | ||
| Line 96: | Line 96: | ||
| === Notes === | === Notes === | ||
| This method is asynchronous, | This method is asynchronous, | ||
| - | To known when the text has been sent use the [[# | + | To know when the text has been sent use the [[# |
| ==== disconnect ==== | ==== disconnect ==== | ||
| Line 114: | Line 114: | ||
| === Notes === | === Notes === | ||
| This method is asynchronous, | This method is asynchronous, | ||
| - | To known when the connection is closed use the [[# | + | To know when the connection is closed use the [[# |
| ==== read ==== | ==== read ==== | ||
| Line 128: | Line 128: | ||
| === Notes === | === Notes === | ||
| - | To known when data is available use the [[# | + | To know when data is available use the [[# |
| ==== readText ==== | ==== readText ==== | ||
| Line 142: | Line 142: | ||
| === Arguments === | === Arguments === | ||
| - | - encoding - ([[code: | + | - encoding - ([[en:code: |
| === Returns === | === Returns === | ||
| Line 148: | Line 148: | ||
| === Notes === | === Notes === | ||
| - | To known when text is available use the [[# | + | To know when text is available use the [[# |
| ==== waitForConnected ==== | ==== waitForConnected ==== | ||
| Line 321: | Line 321: | ||
| ==== OpenMode ==== | ==== OpenMode ==== | ||
| - | File open mode. | + | Open mode. |
| === Values === | === Values === | ||
| Line 333: | Line 333: | ||
| Example: | Example: | ||
| <code javascript> | <code javascript> | ||
| - | myObject.connect(" | + | myObject.connect(" |
| </ | </ | ||
en/code/data/tcp.1296162382.txt.gz · Last modified: (external edit)
