public override Packet processPacket(Packet packet, OakNetEndPoint endpoint)
        {
            McDataClientServerPacket mdcs = packet as McDataClientServerPacket;

            if (DummyClient.isHost)
            {
                DummyClient.getDummyClient(endpoint).sendData(mdcs.data);
            }
            return(null);
        }
 public override Packet processPacket(Packet packet, OakNetEndPoint endpoint)
 {
     if (DummyClient.isHost)
     {
         if (DummyClient.getDummyClient(endpoint).socket == null)
         {
             return(null);
         }
         try
         {
             DummyClient.getDummyClient(endpoint).socket.Shutdown(System.Net.Sockets.SocketShutdown.Both);
             DummyClient.getDummyClient(endpoint).socket.Close();
         }
         catch (SocketException) { }
         DummyClient.getDummyClient(endpoint).socket = null;
     }
     return(null);
 }