This interface is implemented by a Network manager object. A reference to this object is obtained using the global net property.
interface INetworkManager {
// Methods
${createTcpSocket}(bufferSize?: number): ${ITcpSocket};
${createUdpSocket}(): ${IUdpSocket};
${createTcpListener}(bufferSize?: number): ${ITcpListener};
}
// This interface is not available in managed environment
// This interface is not available in native environment
createTcpSocket(bufferSize?: number): ${ITcpSocket};
// This method is not available in managed environment
// This method is not available in native environment
bufferSize
Reference to a created TCP socket object.
Create a TCP socket.
createUdpSocket(): ${IUdpSocket};
// This method is not available in managed environment
// This method is not available in native environment
Reference to a created UDP socket object.
Create an UDP socket.
This method is not available on Windows 7 and throws an exception.
createTcpListener(bufferSize?: number): ${ITcpListener};
// This method is not available in managed environment
// This method is not available in native environment
bufferSize
A reference to a create TCP listener object.
Create a TCP listener. A listener may be used to wait for incoming TCP connections.