Close()

Socket::Close() method

Closes the socket connection.

void System::Net::Sockets::Socket::Close()

Socket::Close(int) method

Closes the socket connection with the specified timeout to allow queued data to be sent.

void System::Net::Sockets::Socket::Close(int timeout)

Arguments

ParameterTypeDescription
timeoutintA number of milliseconds to wait.

See Also