note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
listenport
warning
This function starts with a lowercase letter.
warning
This function is deprecated, Use HTTP or pawn-requests plugin.
Description
Sets up the port number to listen at.
Name | Description |
---|---|
port | The number of the port to listen at. This must be a value between 1 and 65535, but you should probably avoid to use any of the reserved port numbers. |
Return Values
This function always returns 0.
Notes
warning
- You must call this function before receiving the first packet. In other words, you should set up a port in main.
- If no port number has been explicitily chosen, the module will listen at port 9930.
Related Functions
- @receivestring: A packed was received.
- sendstring: Sends a packet containing a string.