public void StartListen() { if (socketClient == null) { return; } if (socketListener != null) { return; } socketListener = new SocketListener(); socketListener.Disconnected += OnServerConnectionDroped; socketListener.MessageRecived += OnMessageRecvied; socketListener.StartReciving(socketClient); }
public void StartListen() { socketListener.StartReciving(clientSocket); }