Hello
in socket programming, how can I get the file decriptor for a remote client? Let me elucidate
I have a server, two clients are suppose to connect to that server and pass message between them. I am using UDP. From a client, the message goes to the server and the server sends the message to the other client. The clients instantiates new processes for the server, so if the server gets the file descriptors for each clients, it can send the message to the other client.
Can anyone tell me how to get the file descriptor for the client? Or is there any other way to do it?
Thanks in advance.
Zav
in socket programming, how can I get the file decriptor for a remote client? Let me elucidate
I have a server, two clients are suppose to connect to that server and pass message between them. I am using UDP. From a client, the message goes to the server and the server sends the message to the other client. The clients instantiates new processes for the server, so if the server gets the file descriptors for each clients, it can send the message to the other client.
Can anyone tell me how to get the file descriptor for the client? Or is there any other way to do it?
Thanks in advance.
Zav