/// <summary> /// Initializes a new instance of the <see cref="EventArgsAsyncClientTcpSocket"/> class with the specified delegate scheduler. /// </summary> /// <param name="scheduler">The delegate scheduler used to synchronize callbacks.</param> public EventArgsAsyncClientTcpSocket(IAsyncDelegateScheduler scheduler) { this.scheduler = scheduler; this.socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); this.state = new SocketStateMachine(); }
internal BeginEndAsyncServerChildTcpSocket(IAsyncDelegateScheduler scheduler, Socket socket) { this.scheduler = scheduler; this.socket = socket; this.state = new SocketStateMachine(); }