public UdpSequencedServerTestTransport(UdpHandle h) : base(h) { }
/// <summary> /// Create and configure a UDP handle for the specified demultiplexor. /// </summary> /// <param name="mux"></param> /// <param name="ep"></param> /// <returns></returns> public static UdpHandle Bind(UdpMultiplexer mux, EndPoint ep) { UdpHandle h = new UdpHandle(ep); h.Bind(mux); return h; }
/// <summary> /// Constructor provided for subclasses that may have a different PacketHeaderSize /// </summary> /// <param name="packetHeaderSize"></param> /// <param name="h"></param> protected UdpServerTransport(uint packetHeaderSize, UdpHandle h) : base(packetHeaderSize) { handle = h; }
public override void Dispose() { lock (this) { try { if (handle != null) { handle.Dispose(); } } catch (Exception e) { log.Info("exception when closing UDP handle", e); } handle = null; } }
// GT UDP 1.0 doesn't need a packet length /// <summary> /// Create a new instance on the provided socket. /// </summary> /// <param name="h">the UDP handle to use</param> public UdpServerTransport(UdpHandle h) : base(0) { handle = h; }