From WikiChip
Difference between revisions of "mirc/commands/socklisten"
(→Switches) |
(→Switches) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Synopsis == | == Synopsis == | ||
− | <source lang="mIRC">/socklisten [- | + | <source lang="mIRC">/socklisten [-dpun] [bindip] <name> [port]</source> |
== Switches == | == Switches == | ||
− | + | * '''d''' - Indicates that an IP address has been specified as the bind address. | |
− | + | * '''p''' - Enables UPnP support for the listening socket, if that is available. | |
− | + | * '''u''' - Enables dual stack socket to support both ipv4 and ipv6 for the listening socket, if that is available, you must bind to an ipv6 ip address | |
− | + | * '''n''' - Disable nagle algorithm for the socket, the {{mIRC|/sockaccept|accepted}} socket will have nagle disabled. You can disable nagle per accepted socket by using /sockaccept's -n switch | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |} | ||
== Parameters == | == Parameters == | ||
− | + | * '''<name>''' - The name to give the new listening socket. | |
− | + | * '''[port]''' - The port number to listen on for this socket. If not specified, mIRC attempts to use a random port specified in the DCC port range options. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Example == | == Example == |
Latest revision as of 22:07, 3 May 2023
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /socklisten command allows mIRC to listen for specific connections on a specified host port.
Synopsis[edit]
/socklisten [-dpun] [bindip] <name> [port]
Switches[edit]
- d - Indicates that an IP address has been specified as the bind address.
- p - Enables UPnP support for the listening socket, if that is available.
- u - Enables dual stack socket to support both ipv4 and ipv6 for the listening socket, if that is available, you must bind to an ipv6 ip address
- n - Disable nagle algorithm for the socket, the accepted socket will have nagle disabled. You can disable nagle per accepted socket by using /sockaccept's -n switch
Parameters[edit]
- <name> - The name to give the new listening socket.
- [port] - The port number to listen on for this socket. If not specified, mIRC attempts to use a random port specified in the DCC port range options.
Example[edit]
Open a listening socket named mySocket and listen on port 31781:
/socklisten mySocket 31781
Compatibility[edit]
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
- List of commands
- List of identifiers
- $sock
- $sockname
- $sockerr
- $sockbr
- /sockaccept
- /sockclose
- /socklist
- /sockmark
- /sockopen
- /sockpause
- /sockread
- /sockrename
- /sockudp
- /sockwrite
mIRC commands list