Esempio n. 1
0
 public UdpSequencedServerTestTransport(UdpHandle h)
     : base(h)
 {
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 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;
     }
 }
Esempio n. 5
0
 // 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;
 }