View Single Post
Old 06-28-2004, 07:53 AM   #1 (permalink)
iwanttolearnc
Registered User
 
iwanttolearnc's Avatar
 
Join Date: Jun 2004
Posts: 11
iwanttolearnc is on a distinguished road
please bind my socket

the usual practice is to use connect() for client and let the os select the port ..etc. but i have two network cards and hence two ip addresses. i want to have control over which ip my communication occurs. how can it be done.

can i try a bind() to the ip and port i desire and follow it with a connect() or is there some other way
iwanttolearnc is offline   Reply With Quote