net.md
October 8, 2016 ยท View on GitHub
TCP and socket EZ Streams
import * as ez from 'ez-streams'
server = ez.devices.net.server(serverOptions, listener, streamOptions)
Creates an EZ HTTP server.
Thelisteneris called aslistener(stream, _)
wherestreamis an EZ reader and writer.
For a full description of this API, seeNetServerin https://github.com/Sage/ez-streams/blob/master/lib/node-wrappers.mdclient = ez.devices.net.tcpClient(port, host, options)
Creates an EZ TCP client.
The stream returned byclient.connect(_)is an EZ reader and writer.
For a full description of this API, seetcpClientin https://github.com/Sage/ez-streams/blob/master/lib/node-wrappers.mdclient = ez.devices.net.socketClient(path, options)
Creates an EZ socket client.
The stream returned byclient.connect(_)is an EZ reader and writer.
For a full description of this API, seetcpClientin https://github.com/Sage/ez-streams/blob/master/lib/node-wrappers.md