Hi, I am creating aplication, that exchanges some information by client server connection. I have only two threads, one for client and one for server side.
When I send some messages from client to servers. It is possible that some server is offline and it takes 30 seconds, before I get error code. But I cannot block my application for so long.
I decided to use select function. Start another "select" thread. In client thread I only want to send message and then give pointer to HttpClientSession to the "select" thread. And the client thread ends. In "select" thread I need to get the filedescriptor for the socket underlaying the HttpClientSession. Or if I want to use select function in the socket.h library a need to get socket underlaying the HttpClientSession. It is possible by socket function. But this is private member function. Can I get socket or socket filedescriptor of HttpClientSession by another way??
Thanks for your advice and please sorry my english :o)





