NetBurner 3.3.9
PDF Version
TCP Notify

Typedefs

typedef void() tcp_notify_handler(int tcpFd)
 TCP notification callback type. More...
 

Functions

void RegisterTCPReadNotify (int tcpFd, tcp_notify_handler *notifyHandler)
 Register a TCP socket and callback function for read notifications. More...
 
void RegisterTCPWriteNotify (int tcpFd, tcp_notify_handler *notifyHandler)
 Register a TCP socket and callback function for write notifications. More...
 

Detailed Description

Advanced function for notification of read or write activivty on a TCP socket. Callback functions can operate on a TCP socket as they would normally. This functionality provides a method of notification when read or write activities occur:

Typedef Documentation

◆ tcp_notify_handler

typedef void() tcp_notify_handler(int tcpFd)

TCP notification callback type.

An application creates a callback function of this type to process TCP read and/or write notifications.

Parameters
tcpFdTCP socket file descriptor of the socket that generated the notification
See also
RegisterTCPReadNotify(), RegisterTCPWriteNotify()

Function Documentation

◆ RegisterTCPReadNotify()

void RegisterTCPReadNotify ( int  tcpFd,
tcp_notify_handler notifyHandler 
)

Register a TCP socket and callback function for read notifications.

The callback function will be called whenever data is read from the TCP socket

Parameters
tcpFdExisting TCP socket file descriptor to monitor
notifyHandlerPointer to callback function to process the notification
See also
RegisterTCPWriteNotify()

◆ RegisterTCPWriteNotify()

void RegisterTCPWriteNotify ( int  tcpFd,
tcp_notify_handler notifyHandler 
)

Register a TCP socket and callback function for write notifications.

The callback function will be called whenever data can be written to the TCP socket buffer

Parameters
tcpFdExisting TCP socket file descriptor to monitor
notifyHandlerPointer to callback function to process the notification
See also
RegisterTCPReadNotify()