Can there be socket connection without nowing the port, given socket descriptor?

Hi ,
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
socket descriptor.
My question is:
Is it possible to receive messages with just the server name and socket descriptor?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

the handle id is all you need, just feed it to the select() function, if select returns do appropriate work (for example reading from id).
   man select
for details,
   man socket
   man bind
   man listen
   man read
might help also ;-)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.