コード例 #1
0
        public void Start()
        {
            this.Port = Port;
            this.Handshaker = new Handshaker();

            this.Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
            this.Socket.Bind(new IPEndPoint(IPAddress.Any, this.Port));
            this.Socket.Listen(128);
            this.Socket.BeginAccept(null, 0, AcceptConnection, null);
        }
コード例 #2
0
        public void Start()
        {
            this.Port       = Port;
            this.Handshaker = new Handshaker();

            this.Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
            this.Socket.Bind(new IPEndPoint(IPAddress.Any, this.Port));
            this.Socket.Listen(128);
            this.Socket.BeginAccept(null, 0, AcceptConnection, null);
        }