1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-26 03:48:06 +11:00

Compare commits

...

2 Commits

Author SHA1 Message Date
c9bb890a59 aaaaaaaaaaaaaaaa
Merge branch 'master' of github.com:ShadowKatStudios/OC-Minitel
2019-11-09 17:40:15 +11:00
78a68efa00 cleared up some docs 2019-11-09 17:40:04 +11:00

View File

@ -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, 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. *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.
#### Layer 4 #### Layer 4
@ -81,7 +81,9 @@ 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, and returns the stream object. *minitel.listen(port)* - Waits for another node to establish a stream on *port*, 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