SOCKET_CLOSE Procedure
Closes a socket connection.
Usage
SOCKET_CLOSE, connection
Input Parameters
connection—A socket handle, the value returned by SOCKET_INIT, SOCKET_CONNECT, or SOCKET_ACCEPT.
Keywords
None.
Discussion
The input parameter, connection, must be a value returned from either SOCKET_INIT, SOCKET_ACCEPT, or SOCKET_CONNECT.
It is good practice to close any socket handle when you are finished with it. Closing a handle returned from SOCKET_CONNECT or SOCKET_ACCEPT terminates that client/server connection (the “session”), while closing a handle returned from SOCKET_INIT terminates the server.
Example
See the example for SOCKET_ACCEPT.
See Also
SOCKET_ACCEPT, SOCKET_CONNECT, SOCKET_INIT
For more detailed information on using the socket routines, see the PV‑WAVE Application Developer’s Guide.