Quote:
Originally Posted by nagaraju1024
Hi Friends,
I wold like to send a data using one thread and receive a data using other thread by using a same socket connection using USD sockets. The calls i am using for sending and receiving are send(), recv(). let me know is it possible to send and receive the data parallel(Full duplex communication)?
Regards,
Nagaraju D
|
Hello,
It depend on the application, if you want to send data after a client has sent you a request then your previous code is ok. If you want to initiate the sending then you need to create the connection first, that means your machine is a client and the other machine must run a server.
So first start a server on other machine and after that run ur client process on ur machine. I think this is the only way.