Example #1
0
        public User(System.Net.Sockets.Socket handler)
        {
            this.handler = handler;
            Do.Core.StateObject state = new Do.Core.StateObject();
            state.workSocket = handler;

            this.IP = handler.RemoteEndPoint.ToString().Split(':')[0];

            handler.BeginReceive(buffer, 0, buffer.Length, 0,
                new AsyncCallback(ReadCallback), this);
        }
Example #2
0
File: Users.cs Project: kadir1/DoPs
        public User(System.Net.Sockets.Socket handler)
        {
            this.handler = handler;
            Do.Core.StateObject state = new Do.Core.StateObject();
            state.workSocket = handler;

            this.IP = handler.RemoteEndPoint.ToString().Split(':')[0];

            handler.BeginReceive(buffer, 0, buffer.Length, 0,
                                 new AsyncCallback(ReadCallback), this);
        }