Skip to main content
GameDev.net gamedev.net
🔒 Locked

Connection problem

Started by QWERTY Sep 25, 2000 at 10:56 AM 1 replies 300+ views
Original Post
QWERTY
QWERTY
I have a problem how to find out whether the user is currently connected to INET or not. If so then I need to determine his IP address. Anyone knows how to do that? I am using C++ Builder 4. Thanks in advance for your help.
Steel
Steel
Check out the following Win32 Internet function from Microsoft''s MSDN web site:
http://msdn.microsoft.com/workshop/networking/wininet/reference/functions/InternetGetConnectedStateEx.asp
rcode
rcode
I think the function that you''re looking for is called "gethostname()". I''m not sure if that''s available for Borland, but it is for Visual C++. I think it would be in Borland though since it''s a standard Winsock function.

Hope that helps.

RCode
http://progui.tripod.com/codeedu
RCode

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.