mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-26 03:48:06 +11:00
Compare commits
No commits in common. "c9bb890a596465b9a8617ef75e0c78b3a69392dc" and "1ab051aa2d4a9208d0e74a608e134eeb5853fd2c" have entirely different histories.
c9bb890a59
...
1ab051aa2d
@ -71,7 +71,7 @@ The minitel library provides an easy way of interacting with the minitel daemon,
|
|||||||
|
|
||||||
*minitel.usend(host, port, data, pid)* - Sends an unreliable packet to *host* on *port* containing *data*, optionally with the packet ID *pid*.
|
*minitel.usend(host, port, data, pid)* - Sends an unreliable packet to *host* on *port* containing *data*, optionally with the packet ID *pid*.
|
||||||
|
|
||||||
*minitel.rsend(host, port, data, noblock)* - Sends a reliable packet to *host* on *port* containing *data*. If *noblock* is true, don't wait for an acknowledgement, instead return the packet ID.
|
*minitel.rsend(host, port, data, block)* - Sends a reliable packet to *host* on *port* containing *data*. If *block* is true, don't wait for a reply, instead return the packet ID.
|
||||||
|
|
||||||
#### Layer 4
|
#### Layer 4
|
||||||
|
|
||||||
@ -81,9 +81,7 @@ The minitel library provides an easy way of interacting with the minitel daemon,
|
|||||||
|
|
||||||
*minitel.open(to,port)* - Establishes a stream to *host* on *port* and returns a stream object
|
*minitel.open(to,port)* - Establishes a stream to *host* on *port* and returns a stream object
|
||||||
|
|
||||||
*minitel.listen(port)* - Waits for another node to establish a stream on *port*, and returns the stream object.
|
*minitel.listen(port)* - Waits for another node to establish a stream, and returns the stream object.
|
||||||
|
|
||||||
*minitel.flisten(port,callback)* - Spawns an event listener that will wait for another node to establish a stream on *port*, and run the function provided as *callback* with the socket object as its argument..
|
|
||||||
|
|
||||||
#### Stream objects
|
#### Stream objects
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user