/// <summary> /// Gracefully stops communication on the socket in one or both directions. /// </summary> /// <param name="how">Describes which directions of communication are to be stopped.</param> /// <remarks> /// <note> /// This method is safe to call when the socket is already shut down or closed. /// </note> /// </remarks> public void Shutdown(SocketShutdown how) { lock (syncLock) { if (isTcp) { sock.Shutdown(how); } } }
public void Shutdown(SocketShutdown how) { sock.Shutdown(how); }