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; }
/// <summary> /// Initializes a new instance of <see cref="SimpleServerTcpSocket"/>. /// </summary> public SimpleServerTcpSocket() { // Create the underlying socket Socket = new ServerTcpSocket(); Socket.AcceptCompleted += SocketAcceptCompleted; }
/// <summary> /// Initializes a new instance of <see cref="SimpleServerTcpSocket"/>. /// </summary> public SimpleServerTcpSocket() { // Create the underlying socket Socket = new ServerTcpSocket(); Socket.AcceptCompleted += SocketAcceptCompleted; }