Beispiel #1
0
        public override void RunSend()
        {
            mutex.WaitOne();
            if (result == null)
            {
                return;
            }

            int sz = sock.Send(result);

            if (sz <= 0)
            {
                Dispose();
                return;
            }

            if (result.Length > sz)
            {
                //	HexViewer.View( result, 0, sz );
                result.Remove(0, sz);
                return;
            }
            result = null;
            mutex.ReleaseMutex();
            return;
        }