Example #1
0
        /// <summary>
        /// Client is requesting data.
        /// </summary>
        public static int OnRecv(long s, byte[] buff, int len, int flags)
        {
            CheckThread();

            lock (SyncRoot) {
                if (ultimaSocket != null && ultimaSocket.Socket == s)
                {
                    return(ultimaSocket.Recv(s, buff, len, flags));
                }
                else
                {
                    return(WinSock.recv(s, buff, len, flags));
                }
            }
        }