www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - TCP/IP API


Ping_Open

Open and start ICMP echo requests.

int Ping_Open ( Ping far *pingptr, int *error );

Parameters

pingptr

Pointer to user's Ping structure.
The contents of this structure will be initialized by this function call.

error

Output parameter:  Failure code, 0 on success.

Return Value

-2: Ping API not supported by RTOS version
-1: Failure, see reported error code.
>= 0: Socket descriptor

Comments

Note:   This API will send ICMP packets forever, until you call Ping_Close.

See Also

RTOS API

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


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


End of document