Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[DELPHI] Get the IP from a given URL

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Feb 25, 2008 1:12 pm    Post subject: [DELPHI] Get the IP from a given URL Reply with quote

Get the IP from a given URL
Few weeks ago we had to write a script which would find the IP from a given URL, this is what I did, the professor liked it =):

Code:
uses
  Winsock;


function IAddrToHostName(const IP: string): string;
var
  i: Integer;
  p: PHostEnt;
begin
  Result := '';
  i      := inet_addr(PChar(IP));
  if i <> u_long(INADDR_NONE) then
  begin
    p := GetHostByAddr(@i, SizeOf(Integer), PF_INET);
    if p <> nil then Result := p^.h_name;
  end
  else
    Result := 'Invalid IP address';
end;

_________________
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Mon Feb 25, 2008 1:42 pm    Post subject: Reply with quote

Credits: http://www.swissdelphicenter.ch/torry/showcode.php?id=2228
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Mon Feb 25, 2008 3:40 pm    Post subject: Reply with quote

Yo, you might want to stop making threads and keep them in just one...
Back to top
View user's profile Send private message MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Mon Feb 25, 2008 3:43 pm    Post subject: Reply with quote

Or she (he?) could just post a couple more links in the Grand Library... ._.
_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Mon Feb 25, 2008 8:48 pm    Post subject: Reply with quote

Lolz. Your university offers Delphi courses?
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Tue Feb 26, 2008 8:12 am    Post subject: Reply with quote

rapion124 wrote:
Lolz. Your university offers Delphi courses?

yeah it does and also; c, c++ and java

Quote:
Or she (he?) could just post a couple more links in the Grand Library... ._.

he, yeah i could but i like to see how no life people are and if are they gonna search them from google if I C/P them from somewhere Very Happy
and it seems like holyblah has no life, no offence

_________________
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Tue Feb 26, 2008 8:50 am    Post subject: Reply with quote

You did more C&P then anyone here.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Feb 26, 2008 8:52 am    Post subject: Reply with quote

Copy Paste again? I remember you copied an assembly tutorial and claimed its yours instead of giving a download link and credits...
Noone needs "your" codes, or else, how will they learn to code themselves?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Feb 26, 2008 11:45 pm    Post subject: Reply with quote

Locked to prevent more flaming. As you have been warned already skyllakarean, if you continue to take credit for others work, you will be banned.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites