Download TASK-6000™ software reference guide

Transcript
TASK-6000 software reference guide
ulReceivePort
The 16-bit port number of the socket which receives the
packets. You can use one of these values:
0
An appropriate port number is chosen from the
range of UP_PREALLOC_PORT_START
through (UP_PREALLOC_PORT_START +
UP_PREALLOC_RTP_PORTS) (defined as
5000–5999 in upa.h) and returned via an event.
Other
The number must fall in the range of
(UP_PREALLOC_PORT_START +
UP_PREALLOC_RTP_PORTS) through
(UP_PREALLOC_PORT_START +
UP_MAX_RTP_PORTS) (defined as 6000–6999
in upa.h), and must be an even number.
ulInterface
The unit number of the Ethernet interface on which to
send packets.
Return values
UP_SUCCESS
Successful completion.
If the function cannot return an error in real time (for example, the
function sends a message to another processor to implement a
configuration change), the function returns this value, indicating that
the message was sent properly. The processor implementing the function
returns one of these values:
UP_EVT_CONFIG_ERROR
UP_EVT_CONNECT_RECV
UP_EVT_PORT_ASSIGNED
UP_CONFIG_ERR
Configuration error.
UP_INVALID_ARG
Invalid argument.
UP_DSP_ERR
DSP channel assignment error—fast packet.
120