Project

General

Profile

Actions

$sockname » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 08/12/2015 06:14 PM


Added in 1.9.0

$sockname

Returns the name of a socket during on SOCKCLOSE, on SOCKLISTEN, on SOCKOPEN, on SOCKREAD and on SOCKWRITE events.

Example

; Open a socket connection to 'google.com' port '80'.
/sockopen Example www.google.com 80

on *:SOCKOPEN:*:{
; Print the name of the socket.
echo -ag Sockname is $sockname

; Close the socket.
sockclose $sockname

Updated by Per Amundsen over 6 years ago · 1 revisions

Also available in: PDF HTML TXT