public SocketChannelAsyncOperation(AbstractSocketChannel channel, bool setEmptyBuffer) { Contract.Requires(channel != null); this.Channel = channel; this.Completed += AbstractSocketChannel.IoCompletedCallback; if (setEmptyBuffer) { this.SetBuffer(ByteArrayExtensions.Empty, 0, 0); } }
protected AbstractSocketUnsafe(AbstractSocketChannel channel) : base(channel) { }
public SocketChannelAsyncOperation(AbstractSocketChannel channel) : this(channel, true) { }