The OMTCP library is a set of functions that allow TCP connections to and from other processes and machines.
Among other things, OMTCP allows you to:
The functions in this library use the following opaque data types:
tcp.connection—allows you to create a connection to a remote machine, and
tcp.service—allows you to accept TCP connections from remote client machines.
To use OMTCP, you must import it into your program using an import declaration such as:
import "omtcp.xmd" prefixed by omtcp.
This is a complete list of the OMTCP library external exceptions that may be thrown back to the calling
OmniMark program. These are all catchable using the
Unable to resolve the given destination address: %s
Wait operation failed: %s
Minimum (%d) and maximum (%d) must be >= -1 with max > min
TCP object already has a derived source
TCP socket is not connected
Write operation timed out
Read operation timed out
Unable to connect to destination %s
Failed to create service port %d
Failed to accept incoming connection: %s
Error while reading from connection: %s
Error while writing to connection: %s
Invalid packet size %d received for packet-based protocol
Specified port %d is out of range (0 to 65535)
Internal error, contact customer support!
Out of memory
Unable to create thread
Specified IO protocol is unsupported
TCP object already has a derived sink
An error has already occurred on this TCP object
Only one of port or socket may be specified
Invalid queue length %d. Range is 1 to 1024
Invalid socket descriptor %d, which is less than 0
Value is out of range