mIRC Home    About    Download    Register    News    Help

Print Thread
#7594 20/01/03 11:50 PM
Joined: Dec 2002
Posts: 1,893
O
Online Offline OP
Hoopy frood
OP Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Hi,

Not an important thing, but it would be nice if $sock stored its host name which was used in the /sockopen command, if any. Otherwise returns the IP address.

Usage?

- HTTP requests (Host: server.com).
- Mail checkers, for referring to the server name.

If anyone else has an idea, you may post it below smile I remember myself needing such a property, and hope it will be included in the next release.

-

Also, in the old board, many people have brought up the idea of a /fetch or /download command, for retrieving files from HTTP or FTP servers. I think it would be very useful, as scripted versions are always more unstable and slow.

#7595 21/01/03 12:03 AM
F
fraggle
fraggle
F
Definitely agreed!

I made my own sockopen which just calls sockopen and sets the sock().mark property with the hostname I connected to

But would be better to have it properly

[edit]*cough* thanks hammer *cough*[/edit]

#7596 21/01/03 12:05 AM
Joined: Dec 2002
Posts: 1,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
$sock($sockname).mark


Link Copied to Clipboard