Tony512
something like this should work
TcpClient socket1= new TcpClient();
TcpClient socket2= new TcpClient();
//data pass throught "Work" connection
DestinationInfoCollection DIC = conn.EnumDestinations();
foreach (DestinationInfo di in DIC)
{
if (di.description == "Work")
{
conn.Connect(di.guid, true, ConnectionMode.Asynchronous);
}
}
socket1.Connect("xxxxxxxxx", zzz);
StreamWriter scrivi = new StreamWriter(socket1.GetStream());
scrivi.Write("data string");
}
//now data pass throught "The Internet" connection
foreach (DestinationInfo di in DIC)
{
if (di.description == "The Internet")
{
conn.Connect(di.guid,
true, ConnectionMode.Asynchronous);
}
}
socket2.Connect("aaaa", bbbb);
StreamWriter scrivi = new StreamWriter(socket2.GetStream());
scrivi.Write("data string");
}