Hi,
I'm looking a TCP guru, so i apologise for any campanologists i may
have attracted by my title.
I'm using the following example code from MS (perhaps i am doomed from
the outset!) ..
Server:
http://msdn.microsoft.com/library/de...ketexample.asp
Client:
http://msdn.microsoft.com/library/de...ketexample.asp
both can just be pasted over the generated code of a new console
application.
So i run the server, then run the client and get the expected result.
Now i change just the client Main() to:
public static int Main(String[] args)
{
Console.ReadLine();
StartClient();
Console.ReadLine();
StartClient();
return 0;
}
and when i press return for the second time, i get some ridiculous
error.
BUT, if i have two of the clients running at the same time on the same
(or different machines), they both work once, and then also throw a
ridiculous error.
I would really, really, really appreciate some help on this as it is
driving me nuts!
Thanks for reading,
James Randle.