public ITcpServerSocketModel ReceiveMessages(params int[] messages) { return(new ImmutableTcpServerSocketModel(Self, BoundAddress, RemoteClients, LastReceivedMessages.Concat(messages).ToList(), WrittenMessages, LocalChannels)); }
public TcpClientSocketModel ReceiveMessages(params int[] messages) { return(new TcpClientSocketModel(Self, LastWrittenMessages, LastReceivedMessages.Concat(messages).ToList(), State)); }