I am new to this socket programming in UNIX.
OK here is my doubt.
I am using a third part CAPI. Th API makes connection to
a server which periodically sends message to my C program.
There is a API call ifGetSocket(int id) which would
give me the socket descriptor. id is an int maintained by
the third part to identify various sessions.
The Help says:
This socket descriptor returned by this API call can
be used in UNIX select call to check any message was sent by the
The connection to the server is established and I can send message to the server
but I dont know which port it used to connect. I know the server name and the
My question is:
Is it possible to receive messages with just the server name and socket descriptor?