Beispiel #1
0
        private bool InternalTrySend(IList<ArraySegment<byte>> segments)
        {
            if (!SocketSession.TrySend(segments))
                return false;

            LastActiveTime = DateTime.Now;
            return true;
        }
        private bool InternalTrySend(ArraySegment <byte> segment)
        {
            if (!SocketSession.TrySend(segment))
            {
                return(false);
            }

            LastActiveTime = DateTime.Now;
            return(true);
        }