public static Tcp.Command Write(ByteString data, Tcp.Event ack = null) { return(Tcp.Write.Create(data, ack)); }
public Tcp.Write WriteCmd(Tcp.Event ack) { return(Tcp.Write.Create(ByteString.Create(new byte[TestSize]), ack)); }
private PendingWrite CreatePendingBufferWrite(IActorRef commander, ByteString data, Tcp.Event ack, Tcp.WriteCommand tail) { var buffer = _tcp.BufferPool.Acquire(); try { var copied = data.CopyToBuffer(buffer); buffer.Flip(); return(new PendingBufferWrite(this, commander, data.Drop(copied), ack, buffer, tail)); } catch (Exception) { _tcp.BufferPool.Release(buffer); throw; } }
public CloseInformation(ISet <IActorRef> notificationsTo, Tcp.Event closedEvent) { NotificationsTo = notificationsTo; ClosedEvent = closedEvent; }
private PendingWrite CreatePendingBufferWrite(IActorRef commander, ByteString data, Tcp.Event ack, WriteCommand tail) { return(new PendingBufferWrite(this, SendArgs, Self, commander, data, ack, tail)); }