GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PH_SET_RECVHOOK (3)

NAME

ph_set_sendhook, ph_set_recvhook - set libphclient debugging hooks

CONTENTS

Synopsis
Version
Description
See Also

SYNOPSIS

#include <phclient.h>

typedef void (*ph_debug_func_t)(void *, char *);
void ph_set_sendhook(PH *ph, ph_debug_func_t sendfunc);
void ph_set_recvhook(PH *ph, ph_debug_func_t recvfunc);
void ph_set_hookdata(PH *ph, void *hook_data);

VERSION

This man page documents version 1.2 of libphclient.

DESCRIPTION

The ph_set_sendhook() and ph_set_recvhook() functions set the libphclient sending and receiving hooks to point to the application- supplied functions sendfunc and recvfunc, respectively.

Once these hooks are set, when each line of data is sent to or received from the PH server, the sendfunc and recvfunc functions are called with two arguments. The first is a pointer to application-specific data (set by the ph_set_hookdata() function). The second is a pointer to the line that was sent to or received from the server. This is typically used by the application to monitor and debug the communication between the library and the PH server.

To unset the send and receive hooks, applications can call ph_set_sendhook() and ph_set_recvhook() with a second argument of NULL.

SEE ALSO

ph_open(3)
Search for    or go to Top of page |  Section 3 |  Main Index


University of Illinois PH_SET_SENDHOOK (3) Oct 2002

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.