Skip to main content

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.

NameDescription
portThe 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.