DNS

DNS

Postby Natter » Thu Mar 28, 2024 12:00 pm

Hi,

DNS is registered on the computer. Is it possible to read their values from FWH ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: DNS

Postby karinha » Thu Mar 28, 2024 1:31 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7832
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: DNS

Postby nageswaragunupudi » Thu Mar 28, 2024 9:05 pm

Code: Select all  Expand view  RUN
  WSAStartup()
   ? GETHOSTNAME()   // Name of your PC
   ? GETHOSTBYNAME( GETHOSTNAME() ) // Your IP address on your local network
   WsaCleanUp()
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: DNS

Postby Natter » Fri Mar 29, 2024 7:49 am

Thank you, Rao! What does the WSACleanup() function do ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: DNS

Postby Antonio Linares » Fri Mar 29, 2024 7:53 am

WSACleanup() is responsible for performing cleanup tasks when your program is finished using Winsock functionality.

Unloads Winsock DLLs: When called, WSACleanup() typically unloads any protocol-specific helper DLLs (Dynamic Link Libraries) that were loaded during the initialization process using WSAStartup(). These DLLs provide support for specific network protocols like TCP/IP.

Cancels Pending Calls (with caution): It's important to note that WSACleanup() cancels any pending blocking or asynchronous Winsock calls issued by any thread in your application. This cancellation happens without notification messages or event object signaling, which could potentially lead to unexpected behavior if not handled carefully.
regards, saludos

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

Re: DNS

Postby Natter » Fri Mar 29, 2024 8:26 am

Thanks, I get it !
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 37 guests