FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Listening socket on specific ip address?
Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Listening socket on specific ip address?
Posted: Mon May 17, 2010 09: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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Listening socket on specific ip address?
Posted: Mon May 17, 2010 02: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

Continue the discussion