udpc_write()

udpc_write()#

Send data through a UDP communication channel.

Prototype

PUBLIC int udpc_write(
    int          handle,
    const void  *data,
    size_t       size
);
        

Parameters

Key

Type

Description

handle

int

The handle of the UDP channel to write to.

data

const void *

The data to send.

size

size_t

The size of the data in bytes.


Return Value

Returns the number of bytes successfully sent, or a negative value on failure.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples