Esempio n. 1
0
        public GameSocketManager Start()
        {
            _actionThread = new ActionThread
                                {
                                    Name = "BLUEDOT-GameSocketThread"
                                };

            _actionThread.Start();
            _actionThread.Do(() =>
            {
                _listeningSocket = new ServerTcpSocket();
                _listeningSocket.AcceptCompleted += IncomingConnectedAccepted;
                _listeningSocket.Bind(Address, Port);
                _listeningSocket.AcceptAsync();
            });

            return this;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="SimpleServerTcpSocket"/>.
 /// </summary>
 public SimpleServerTcpSocket()
 {
     // Create the underlying socket
     Socket = new ServerTcpSocket();
     Socket.AcceptCompleted += SocketAcceptCompleted;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of <see cref="SimpleServerTcpSocket"/>.
 /// </summary>
 public SimpleServerTcpSocket()
 {
     // Create the underlying socket
     Socket = new ServerTcpSocket();
     Socket.AcceptCompleted += SocketAcceptCompleted;
 }