The TCP API is for creating TCP clients / TCP servers and it supports synchronous and asynchronous methods.
Using the asynchronous functions, the application will register a callback function and will not block the current process until the result is obtained. When the result is received, the callback function will be called with the specified event.
Using the synchronous functions, the application will block the current process until the result is received, even if the operation takes a long time.
There is a maximum of 3 concurrent connections.
|
Function |
Description |
|
This function closes a TCP connection. | |
|
This function closes an open TCP connection synchronously and it will be blocked until it has finished closing the connections. | |
|
This function creates a TCP connection to the host. | |
|
This function creates a TCP connection synchronously and it will be blocked until it is connected. | |
|
This function reads data from a TCP connection. | |
|
This function reads data from a TCP connection synchronously and it will blocked until it has finished reading all data. | |
|
This function waits for the incoming connections and returns a new connection socket handle. | |
|
This function represents the server that closes the client. | |
|
This function closes the client socket synchronously. | |
|
This function initiates a server socket. | |
|
This function initiates socket server synchronously. | |
|
This function represents the server that reads data received by a client. | |
|
This function reads data synchronously. | |
|
This function de-initializes the socket server. | |
|
This function de-initiates socket server synchronously. | |
|
This function sends data from a server to a client. | |
|
This function sends data to a host which was previously connected. | |
|
This function writes data to TCP connection. | |
|
This function writes data to an open TCP connection synchronously and it will be blocked until it has finished writing all data. |
|
Struct, Record, Enum |
Description |
|
TCP events | |
|
TCP results |
|
Type |
Description |
|
This function represents TCP connection callback function type. | |
|
This is the Callback function type of TCP server. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.