| 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/
|
Posted: Mon Feb 25, 2008 1:12 pm Post subject: [DELPHI] Get the IP from a given URL |
|
|
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 |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Mon Feb 25, 2008 3:40 pm Post subject: |
|
|
| Yo, you might want to stop making threads and keep them in just one...
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Feb 25, 2008 3:43 pm Post subject: |
|
|
Or she (he?) could just post a couple more links in the Grand Library... ._.
_________________
|
|
| Back to top |
|
 |
rapion124 Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Mon Feb 25, 2008 8:48 pm Post subject: |
|
|
| Lolz. Your university offers Delphi courses?
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Tue Feb 26, 2008 8:12 am Post subject: |
|
|
| 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
and it seems like holyblah has no life, no offence
_________________
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Tue Feb 26, 2008 8:50 am Post subject: |
|
|
| You did more C&P then anyone here.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Feb 26, 2008 8:52 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Feb 26, 2008 11:45 pm Post subject: |
|
|
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 |
|
 |
|