Share this page

# Socket Types

Type | Explanation
TCP | Similar to the WinSock SOCK_STREAM type. Provides sequenced, reliable, two-way, (full-duplex) connection-based byte streams with an out-of-band data transmission mechanism. Uses TCP for the Internet address family.
UDP | Similar to the WinSock SOCK_DGRAM type. Supports datagrams, which are connectionless, unreliable buffers of a fixed (typically small) maximum length. Uses UDP for the Internet address family.

To establish a TCP connection, the following steps are implemented:

Operation | WinSock | VuGen function | Client/Server
Open socket | socket | lrs_create_socket | client and server
Name socket | bind | lrs_create_socket | client (optional) and server
Prepare to associate with another socket | listen | lrs_create_socket | server
Initiate association | connect | lrs_create_socket | client
Complete association | accept | lrs_accept_connection | server
Receive/Send | recv/send | lrs_receive/ lrs_send | client and server

To establish a UDP connection, the following steps are implemented:

Operation | WinSock | VuGen function | Client/Server
Open socket | socket | lrs_create_socket | client and server
Name socket | bind | lrs_create_socket | client and server
Associate Sockets: Receive/Send | recvfrom /sendto | lrs_receive/ lrs_send | client and server

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: