Scriptable Serial Ports - Emulate serial devices with scripts and debug serial applications
Download Virtual Serial Port Tools Hide this button

INetworkManager Interface

This interface is implemented by a Network manager object. A reference to this object is obtained using the global net property.

Declaration

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

INetworkManager Methods

createTcpSocket

createTcpSocket(bufferSize?: number): ${ITcpSocket};
// This method is not available in managed environment
// This method is not available in native environment
bufferSize
Optional size of the socket buffer, in bytes. If omitted, 512 KB buffer is used.

Reference to a created TCP socket object.

Create a TCP socket.

createUdpSocket

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.

WARNING

This method is not available on Windows 7 and throws an exception.

createTcpListener

createTcpListener(bufferSize?: number): ${ITcpListener};
// This method is not available in managed environment
// This method is not available in native environment
bufferSize
Optional size of the socket buffer, in bytes. If omitted, 512 KB buffer is used.

A reference to a create TCP listener object.

Create a TCP listener. A listener may be used to wait for incoming TCP connections.