J
Juan
I built a socket server that is able to connect clients and echo the message
included woth the client request to connect. I haven´t been able to make the
server listen for further messages. This is the loop where I'm suppose to
make the BeginReceive call... Does any one know how should I place the call?
while (true)
{
allDone.Reset();
Console.WriteLine("Esperando por conexión...");
listener.BeginAccept(
new AsyncCallback(AcceptCallback),listener );
allDone.WaitOne();
}
Regards,
Juan.
included woth the client request to connect. I haven´t been able to make the
server listen for further messages. This is the loop where I'm suppose to
make the BeginReceive call... Does any one know how should I place the call?
while (true)
{
allDone.Reset();
Console.WriteLine("Esperando por conexión...");
listener.BeginAccept(
new AsyncCallback(AcceptCallback),listener );
allDone.WaitOne();
}
Regards,
Juan.