示例#1
0
        public void Run(ConnectionAction action)
        {
            tcpClient.Connect(IP, PORT);
            Console.WriteLine("Connected to server!");

            WaitForOKSignal();

            action.Invoke(_socket);
        }
示例#2
0
 public override void Connected()
 {
     ConnectionAction?.Invoke();
 }
示例#3
0
 public void Connected()
 {
     ConnectionAction?.Invoke();
 }