www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


GetWaitingBytes

Report the number of bytes available on a socket, waiting to be read.

int GetWaitingBytes ( int sd, int *error );

Parameters

sd

Socket descriptor.

error

Output parameter:  Failure code, 0 on success.

Return Value

-1 on failure, see error reported
else count of received bytes waiting on socket.

Comments

If the specified socket is an UDP socket, GetWaitingBytes() will return the size (in bytes) of the next waiting datagram at the internal socket receive queue.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00V1.00V0.90V1.00

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document