Hi, having alot of problems with async sockets and have kind of given up. If anyone can create a small sample of these features, points are yours.
I need a console application that is able to open up 2 connections to 2 _different_ servers, at the same time.
One should run on a thread and send "PING" to the server, once every xx seconds.
The other should just run normally as I'm expected to send commands to the stream - written from the console.
I don't mind what you use, TcpClient or Socket, aslong as both connections to the server's running until I close the application.
Some of the problems i'm having is doing while loops to keep reading for data, I always end up with only 1 line of data, then not being able to read anymore.
I've tried the async client socket example from MSDN, but it won't give a reply back. Server is sending '\0' char at the end I believe.