CloseNetworkConnection()
语法
CloseNetworkConnection(Connection)概要
Close the specified connection.
参数
Connection The connection to close. This is the result of either a call to OpenNetworkConnection() or EventClient().
返回值
无.
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.
参阅
OpenNetworkConnection(), EventClient(), CloseNetworkServer()
已支持操作系统
所有