Stream vSockets
The flowchart in Connection-Oriented Stream Sockets shows how to establish connection-oriented sockets on the server and client.
Connection-Oriented Stream Sockets
With vSockets and TCP sockets, the server waits for the client to establish a connection. After connecting, the server and client communicate through the attached socket. In vSockets, a virtual socket can have only two endpoints, and the server cannot initiate a connection to the client. In TCP sockets, more than two endpoints are possible, though rare, and the server can initiate connections. Otherwise, the protocols are identical.