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); }
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); }
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)); }
public bool SendUDPPacket(Mule.Network.Packet packet, Mule.ED2K.ED2KServer host, bool delpacket) { return(SendUDPPacket(packet, host, delpacket, 0, null, 0)); }
public bool SendPacket(Mule.Network.Packet packet, bool delpacket) { return(SendPacket(packet, delpacket, null)); }
public bool SendPacket(Mule.Network.Packet packet) { return(SendPacket(packet, true, null)); }