netCloseTCPStream

Closes a TCP client connection. Takes a handle (Int). Returns nothing (Void).

Network

Parameters & Returns

Parameters

handle Int

Returns

Void

Quick Summary

Closes a TCP client connection. Takes a handle (Int). Returns nothing (Void).

Technical Exegesis...

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

After calling this function, the handle is no longer valid and should not be used. Always close TCP streams when finished to free system resources. Can be used for connections created by netOpenTCPStream or client sockets returned by netAcceptTCPStream.

Example

Example.bam
; No example implemented yet