Exemple #1
0
        static async Task <Tuple <Stream, Stream> > AcceptCoqTopConnections(TcpListener localMainR, TcpListener localMainW, TcpListener localControlR, TcpListener localControlW)
        {
            var localMainRConnection = await localMainR.AcceptTcpClientAsync();

            var localMainWConnection = await localMainW.AcceptTcpClientAsync();

            var localControlRConnection = await localControlR.AcceptTcpClientAsync();

            var localControlWConnection = await localControlW.AcceptTcpClientAsync();

            var localMain    = new StreamJoinIO(localMainRConnection.GetStream(), localMainWConnection.GetStream());
            var localControl = new StreamJoinIO(localControlRConnection.GetStream(), localControlWConnection.GetStream());

            return(Tuple.Create <Stream, Stream>(localMain, localControl));
        }
Exemple #2
0
 static async Task<Tuple<Stream,Stream>> AcceptCoqTopConnections(TcpListener localMainR, TcpListener localMainW, TcpListener localControlR, TcpListener localControlW)
 {
   var localMainRConnection = await localMainR.AcceptTcpClientAsync();
   var localMainWConnection = await localMainW.AcceptTcpClientAsync();
   var localControlRConnection = await localControlR.AcceptTcpClientAsync();
   var localControlWConnection = await localControlW.AcceptTcpClientAsync();
   var localMain = new StreamJoinIO(localMainRConnection.GetStream(), localMainWConnection.GetStream());
   var localControl = new StreamJoinIO(localControlRConnection.GetStream(), localControlWConnection.GetStream());
   return Tuple.Create<Stream,Stream>(localMain, localControl);
 }