public override void  handle_timer(object o)
        {
            AsyncTimer ar = (AsyncTimer)o;

            byte [] buffer = (byte [])ar.item();

            m_async_send.send(buffer);

            // start a new work
            //m_async_work.work();
        }
Exemple #2
0
        public override void handle_timer(object o)
        {
            AsyncTimer   ar         = (AsyncTimer)o;
            AsyncConnect op_connect = (AsyncConnect)ar.item();
            Socket       sock       = (Socket)op_connect.handle();

            if (!sock.Connected)
            {
                // Close the socket, timeout
                sock.Close();
            }
        }