CloseNetworkConnection()

Syntax

CloseNetworkConnection(Connection)
Description
Close the specified connection.

Parameters

Connection The connection to close. This is the result of either a call to OpenNetworkConnection() or EventClient().

Return value

None.

Remarks

If a client calls this function the server will receive a #PB_NetworkEvent_Disconnect event. If this function is called from a server the connection will be closed without further notice to the client. When a server receives a #PB_NetworkEvent_Disconnect event its associated client connection is automatically closed and CloseNetworkConnection() must not be called in this case.

All remaining opened connections are automatically closed when the program ends.

See Also

OpenNetworkConnection(), EventClient(), CloseNetworkServer()

Supported OS

All

Network Index - CloseNetworkServer() ->