C#聊天程序(14) "Error Initializing Socket:\n"+e.ToString()); } } }
// Try a client connection if(client){ Socket temp = new Socket(AddressFamily.InterNetwork, SocketType.Stream,ProtocolType.Tcp); temp.Blocking = true; temp.Connect(endPoint); socket = temp; }
// If it all worked out, create stream objects if(socket != null){