void Startup()
        {
            CustomeEventArgs _args1 = new CustomeEventArgs("AcceptAsync");

            _args1.Complete += OnAcceptCallback;
            socket.AcceptAsync(_args1);

            CustomeEventArgs _args2 = new CustomeEventArgs("ReceiveAsync");

            _args2.Complete += OnReceiveCallback;
            socket.ReceiveAsync(_args2);

            CustomeEventArgs _args3 = new CustomeEventArgs("SendAsync");

            _args3.Complete += OnSendCallback;
            socket.SendAsync(_args3);

            System.Threading.Thread _thread = new System.Threading.Thread(socket.Startup);
            _thread.Start();
        }
 public void SendAsync(CustomeEventArgs _args)
 {
     sendArgs = _args;
 }
 public void ReceiveAsync(CustomeEventArgs _args)
 {
     receiveArgs = _args;
 }
 public void AcceptAsync(CustomeEventArgs _args)
 {
     acceptArgs = _args;
 }
 void OnSendCallback(object _obj, CustomeEventArgs _sendArgs)
 {
     Console.WriteLine(" > OnSendCallback:" + _sendArgs.msg + " > " + _sendArgs.callCount);
 }
 void OnReceiveCallback(object _obj, CustomeEventArgs _receiveArgs)
 {
     Console.WriteLine(" > OnReceiveCallback:" + _receiveArgs.msg + " > " + _receiveArgs.callCount);
 }
 void OnAcceptCallback(object _obj, CustomeEventArgs _acceptArgs)
 {
     Console.WriteLine(" > OnAcceptCallback:" + _acceptArgs.msg + " > " + _acceptArgs.callCount);
 }