net_socket.localAddress

socket.localAddress The string representation of the local IP address the remote client is connecting on. For example, if you are listening on '0.0.0.0' and the client connects on '192.168.1.1', the value would be '192.168.1.1'.

net_socket.end()

socket.end([data][, encoding]) Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data. If data is specified, it is equivalent to calling socket.write(data, encoding) followed by socket.end().

net_socket.connect()

socket.connect(options[, connectListener]) Opens the connection for a given socket. For TCP sockets, options argument should be an object which specifies: port: Port the client should connect to (Required). host: Host the client should connect to. Defaults to 'localhost'. localAddress: Local interface to bind to for network connections. localPort: Local port to bind to for network connections. family : Version of IP stack. Defaults to 4. lookup : Custom lookup function. Defaults to

net_socket.bytesWritten

socket.bytesWritten The amount of bytes sent.

net_socket.bytesRead

socket.bytesRead The amount of received bytes.

net_socket.bufferSize

socket.bufferSize net.Socket has the property that socket.write() always works. This is to help users get up and running quickly. The computer cannot always keep up with the amount of data that is written to a socket - the network connection simply might be too slow. Node.js will internally queue up the data written to a socket and send it out over the wire when it is possible. (Internally it is polling on the socket's file descriptor for being writable). The consequence of this internal buffe

net_socket.address()

socket.address() Returns the bound address, the address family name and port of the socket as reported by the operating system. Returns an object with three properties, e.g. { port: 12346, family: 'IPv4', address: '127.0.0.1' }

net_server.unref()

server.unref() Calling unref on a server will allow the program to exit if this is the only active server in the event system. If the server is already unrefd calling unref again will have no effect. Returns server.

net_server.listening

server.listening A Boolean indicating whether or not the server is listening for connections.

net_server.maxConnections

server.maxConnections Set this property to reject connections when the server's connection count gets high. It is not recommended to use this option once a socket has been sent to a child with child_process.fork().