mIRC Homepage
Posted By: Online $sock().host - 20/01/03 11:50 PM
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.
Posted By: fraggle Re: $sock().host - 21/01/03 12:03 AM
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]
Posted By: Hammer Re: $sock().host - 21/01/03 12:05 AM
$sock($sockname).mark
© mIRC Discussion Forums