netSendUDPString

Sends a string as a UDP datagram. Takes a handle (Int), IP address (String), port (Int), and string (String). Returns the number of bytes sent, or 0 if string is NULL (Int).

Network

Parameters & Returns

Parameters

handle Int
ip String
port Int
str String

Returns

Int

Quick Summary

Sends a string as a UDP datagram. Takes a handle (Int), IP address (String), port (Int), and string (String). Returns the number of bytes sent, or 0 if string is NULL (Int).

Technical Exegesis...

Convenience function that sends a null-terminated string as a UDP datagram to the specified IP and port. Calculates the string length using strlen and calls netSendUDPMsg to send the data. Returns the number of bytes sent, or 0 if str is NULL.

Does NOT send the null terminator - only the string characters. Wrapper around netSendUDPMsg for easier string sending. UDP datagrams are sent as complete units. Useful for text-based messaging and simple protocols over UDP.

Example

Example.bam
; No example implemented yet