IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int RegisterSrvConnCbHandler ( void *  userConnectionCbFuncPtr,
int  server 
)

Install a system server connection handler function.
The installed connection handler will be executed by the TCPIP protocol stack if a client establishes a connection to the server (FTP, WEB, Telnet,SSL Webserver, SSH Server).

Parameters:
[in] server See enumeration type SERVER_SPEC
[in] userConnectionCbFuncPtr Pointer to user's callback function.
Returns:
0 : success
-1: Invalid server parameter
Note:
A connection handler function must be declared in the following way:
 int  userConnectionHandler(struct sockaddr *sockptr );
The function will be automatically uninstalled, if the application exits.
Since:
SC2x3 V1.00 - CLIB V1.00





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:39 2017 by Doxygen 1.6.1