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.
sendpacket
warning
This function starts with a lowercase letter.
warning
This function is deprecated, Use HTTP or pawn-requests plugin.
Description
Sends a packet.
Name | Description |
---|---|
const packet[] | The buffer that contains the packet to send. |
size | Buffer size. |
const destination[] = "" | The IP address and port number to which the packet must be sent. If absent or an empty string, this function will broadcast the packet and use the default port number 9930 (optional="") |
Return Values
1 on success, 0 on failure.
Related Functions
- @receivepacket: A packed was received.
- sendstring: Sends a packet containing a string.