Pascal language API: using procedure calls

Your program uses procedure calls to initiate communication with the TCP/IP address space. Most of these procedure calls return with a code, which indicates success or the type of failure incurred by the call. See Table 1 for an explanation of the return codes.

Before invoking any of the other interface procedures, use BeginTcpIp to start the TCP/UDP/IP service. When the TCP/UDP/IP service has begun, use the Handle procedure to specify a set of notifications that the TCP/UDP/IP service can send you. To terminate the TCP/UDP/IP service, use the EndTcpIp procedure.