Listening socket on specific ip address?

Listening socket on specific ip address?

Postby AlexSchaft » Mon May 17, 2010 9:48 am

Hi,

Is there an function similar to bindtoport available that maps to the socket api bind function? I'd like to create a socket that listens on 127.0.0.1 (localhost) only

Thanks,
Alex
User avatar
AlexSchaft
 
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Re: Listening socket on specific ip address?

Postby Antonio Linares » Mon May 17, 2010 2:57 pm

Alex,

FWH provides function BINDTOPORT(). You can review its source code in source\winapi\winsock.c
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests