ContentsIndex
PreviousUpNext
TCP
Topics | Functions | Structs, Records, Enums | Types
Description

The TCP API is for creating TCP clients / TCP servers and it supports synchronous and asynchronous methods.

Introduction

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.

Limitation

There is a maximum of 3 concurrent connections.

Group
Functions
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. 
Structs, Records, Enums
Struct, Record, Enum 
Description 
TCP events 
TCP results 
Types
Type 
Description 
This function represents TCP connection callback function type. 
This is the Callback function type of TCP server. 
Links
Created with a commercial version of 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.