/// <summary>
 /// Creates a new acceptor-side session instance.
 /// </summary>
 internal AsyncDatagramSession(IoService service, IoProcessor<AsyncDatagramSession> processor,
     AsyncDatagramAcceptor.SocketContext ctx, EndPoint remoteEP, Boolean reuseBuffer)
     : base(service, processor, new DefaultDatagramSessionConfig(), ctx.Socket, ctx.Socket.LocalEndPoint, remoteEP, reuseBuffer)
 {
     _socketContext = ctx;
 }
Example #2
0
 /// <summary>
 /// Creates a new acceptor-side session instance.
 /// </summary>
 internal AsyncDatagramSession(IoService service, IoProcessor <AsyncDatagramSession> processor,
                               AsyncDatagramAcceptor.SocketContext ctx, EndPoint remoteEP, Boolean reuseBuffer)
     : base(service, processor, new DefaultDatagramSessionConfig(), ctx.Socket, ctx.Socket.LocalEndPoint, remoteEP, reuseBuffer)
 {
     _socketContext = ctx;
 }