private Socket _clientSock; //Close all used recources (but this does not help??!) if (_clientSock != null) { this._clientSock.Shutdown(SocketShutdown.Both); this._clientSock.Close(); this._clientSock = null; System.Threading.Thread.Sleep(300); } this._clientSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); this._clientSock.Connect(_IP, _port); //Send the command after reconnecting _bytes = this._clientSock.Send(this._byteListFromPC.ToArray());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)