DNS

Post Reply
Natter
Posts: 1226
Joined: Mon May 14, 2007 9:49 am

DNS

Post by Natter »

Hi,

DNS is registered on the computer. Is it possible to read their values from FWH ?
User avatar
karinha
Posts: 7885
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: DNS

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: DNS

Post by nageswaragunupudi »

Code: Select all | Expand

   WSAStartup()
   ? GETHOSTNAME()   // Name of your PC
   ? GETHOSTBYNAME( GETHOSTNAME() ) // Your IP address on your local network
   WsaCleanUp()
 
Regards

G. N. Rao.
Hyderabad, India
Natter
Posts: 1226
Joined: Mon May 14, 2007 9:49 am

Re: DNS

Post by Natter »

Thank you, Rao! What does the WSACleanup() function do ?
User avatar
Antonio Linares
Site Admin
Posts: 42270
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: DNS

Post by Antonio Linares »

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
Natter
Posts: 1226
Joined: Mon May 14, 2007 9:49 am

Re: DNS

Post by Natter »

Thanks, I get it !
Post Reply