コード例 #1
0
        public ReceiverController(SocketCore socketCore, ICloud receiver)
        {
            this.socketCore = socketCore;
            socketCore.application = receiver;

            // Start receive package from server async
            (new Thread(new ThreadStart(Receive))).Start();
        }
コード例 #2
0
 public Connection(string dns, int port, ICloud receiver)
 {
     socketCore.socket.Connect(getIpAddress(dns), port);
     socketCore.Connection(this);
     new ReceiverController(socketCore, receiver);
 }