netCloseTCPServer

Closes a TCP server and stops listening for connections. Takes a server handle (Int). Returns nothing (Void).

Network

Parameters & Returns

Parameters

serverHandle Int

Returns

Void

Quick Summary

Closes a TCP server and stops listening for connections. Takes a server handle (Int). Returns nothing (Void).

Technical Exegesis...

Closes the TCP server socket and removes it from the internal server map. If the server handle is not found, the function does nothing. Uses closesocket to properly close the listening socket.

After calling this function, the server handle is no longer valid. The server will no longer accept new connections. Existing client connections (accepted via netAcceptTCPStream) are NOT closed and must be closed separately with netCloseTCPStream. Always close servers when finished to free system resources.

Example

Example.bam
; No example implemented yet