Exemple #1
0
 public bool SendUDPPacket(Mule.Network.Packet packet, Mule.ED2K.ED2KServer host, bool delpacket, ushort nSpecialPort, byte[] pRawPacket, uint nLen)
 {
     if (MuleApplication.Instance.IsConnected)
     {
         if (udpsocket_ != null)
         {
             udpsocket_.SendPacket(packet, host, nSpecialPort, pRawPacket, nLen);
         }
     }
     return(true);
 }
Exemple #2
0
 public bool SendPacket(Mule.Network.Packet packet, bool delpacket, Mule.Network.ServerSocket to)
 {
     if (to != null)
     {
         if (IsConnected)
         {
             connectedSocket_.SendPacket(packet, delpacket, true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         to.SendPacket(packet, delpacket, true);
     }
     return(true);
 }
Exemple #3
0
 public bool SendUDPPacket(Mule.Network.Packet packet, Mule.ED2K.ED2KServer host,
                           bool delpacket, ushort nSpecialPort, byte[] pRawPacket)
 {
     return(SendUDPPacket(packet, host, delpacket, nSpecialPort, pRawPacket, 0));
 }
Exemple #4
0
 public bool SendUDPPacket(Mule.Network.Packet packet, Mule.ED2K.ED2KServer host, bool delpacket)
 {
     return(SendUDPPacket(packet, host, delpacket, 0, null, 0));
 }
Exemple #5
0
 public bool SendPacket(Mule.Network.Packet packet, bool delpacket)
 {
     return(SendPacket(packet, delpacket, null));
 }
Exemple #6
0
 public bool SendPacket(Mule.Network.Packet packet)
 {
     return(SendPacket(packet, true, null));
 }