mIRC Home    About    Download    Register    News    Help

Print Thread
#54809 14/10/03 08:18 PM
Joined: Oct 2003
Posts: 13
Eistee Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Oct 2003
Posts: 13
$port
Returns the port number of the server to which you're currently connected.

what is about the local port wich is used for an connection?

123.123.123.123:4567 -> 789.789.789.789:6667
local ip = 123.123.123.123 = $ip
local port = 4567 = ??? needed !!!
server ip = 789.789.789.789 = $serverip
server port = 6667 = $port

i hope this example show what i mean
if this can be included in futur mirc versions it would be nice

#54810 15/10/03 06:45 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
This could just be stupid ole me, but doesn't $port return that too. I always thought it did anyway.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#54811 15/10/03 06:53 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Nope. It returns the server port.


* cold edits his posts 24/7
#54812 15/10/03 07:39 AM
Joined: Dec 2002
Posts: 155
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
Long ago I suggested that a way of referring to the mIRC socket with the $sock() identifier would be useful. For example, you would be able to use $sock(mirc).bindport to get the local port, or $sock(mirc).sent to get the total number of bytes sent.

Of course this never was and will probably never be added.

#54813 15/10/03 07:52 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Well who knows? I agree it's a great suggestion.


* cold edits his posts 24/7

Link Copied to Clipboard