FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Anyone with WinSock C++ experience





DivineLight
Hi All,

I need a person with windows socket programming experience in C++ win32 applications.

My problem is that I want to connect to a given webaddres and then request a page.

How do I change the webaddress like "divinelight.isa-geek.com" to IP address that I can pass into my sockets??
there are functions like gethosybyaddress() but they work on host names on local area network.

Please help.
AftershockVibe
Uh, gethostbyName() should work.


Which flavour of C++ are you using and on what Operating System?
If you're using the .Net framework there is the System.Net.Dns.Resolve() function as well.
DivineLight
Yes its working now, the error was that i entered invalid address(nonexistent) and it returns a null pointer and crashed. Was not checking it.

thanks,
Related topics
Electronic Music
AMD Turion vs Intel Centrino
switching from blogger to wordpress
SimCity 4
Spell checker
Linux - Red Hat
Dragon Quest VIII vs. Magna Carta
AJAX web coding
yamaha vision, anyone?
Has anyone ever used phpraid? (Used for world of warcraft)
Learn C/C++ to make free software?
Anyone have experience with Alaskan Malamutes?
Has anyone use C# .NET for web coding here?
Does anyone here use iwriter?
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.