Link to home
Start Free TrialLog in
Avatar of yakky
yakky

asked on

I have a function which sends a text string to a socket.

I have a function which sends a text string to a socket.
I only want the function to return when I recieve a reply from the socket.

Any ideas how i do this?


further details

function x
{
  m_socket->Send("some text");

 return socket's (m_socket->Reply())
}
ASKER CERTIFIED SOLUTION
Avatar of JMu
JMu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yakky
yakky

ASKER

Thanks very much its done the trick
Yakky