private void ConfigureSockets() { serverSocket = new Connection_Mgr(); serverSocket.Port = PortNumber; serverSocket.SktEncoding = Encoding.Default; serverSocket.ConnectionAccepted += serverSocket_ConnectionAccepted; serverSocket.Closed += serverSocket_Closed; serverSocket.MsgReceived += serverSocket_MsgReceived; IsListening = false; }
private void ConfigureSockets() { serverSocket = new Connection_Mgr(); serverSocket.Port = PortNumber; serverSocket.SktEncoding = Encoding.Default; serverSocket.ConnectionAccepted += serverSocket_ConnectionAccepted; serverSocket.Closed += serverSocket_Closed; serverSocket.MsgReceived += serverSocket_MsgReceived; IsListening = false; }