コード例 #1
0
 public ITcpServerSocketModel ReceiveMessages(params int[] messages)
 {
     return(new ImmutableTcpServerSocketModel(Self, BoundAddress, RemoteClients,
                                              LastReceivedMessages.Concat(messages).ToList(), WrittenMessages, LocalChannels));
 }
コード例 #2
0
 public TcpClientSocketModel ReceiveMessages(params int[] messages)
 {
     return(new TcpClientSocketModel(Self, LastWrittenMessages, LastReceivedMessages.Concat(messages).ToList(),
                                     State));
 }