Test.ServerHandler.OnReceived C# (CSharp) Method

OnReceived() public method

public OnReceived ( IConnection connection, Object obj ) : void
connection IConnection
obj Object
return void
        public void OnReceived(IConnection connection, Object obj)
        {
            //throw new NotImplementedException();
            UserInfo info = (UserInfo)obj;
            //Console.WriteLine("receive from " + connection.RemoteEndPoint.ToString()+":"+info.username);
            Interlocked.Increment(ref this.count);

            if (count % 1000 == 0)
            {
                Console.WriteLine("receive:" + count);
            }
        }