geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
1.3 KiB

  1. .TH libssh2_trace_sethandler 3 "15 Jan 2010" "libssh2 1.2.3" "libssh2 manual"
  2. .SH NAME
  3. libssh2_trace_sethandler - set a trace output handler
  4. .SH SYNOPSIS
  5. .nf
  6. #include <libssh2.h>
  7. typedef void (*libssh2_trace_handler_func)(LIBSSH2_SESSION *session,
  8. void* context,
  9. const char *data,
  10. size_t length);
  11. int libssh2_trace_sethandler(LIBSSH2_SESSION *session,
  12. void* context,
  13. libssh2_trace_handler_func callback);
  14. .SH DESCRIPTION
  15. libssh2_trace_sethandler installs a trace output handler for your application.
  16. By default, when tracing has been switched on via a call to libssh2_trace(),
  17. all output is written to stderr. By calling this method and passing a
  18. function pointer that matches the libssh2_trace_handler_func prototype,
  19. libssh2 will call back as it generates trace output. This can be used to
  20. capture the trace output and put it into a log file or diagnostic window.
  21. This function has no effect unless libssh2 was built to support this option,
  22. and a typical "release build" might not.
  23. \fBcontext\fP can be used to pass arbitrary user defined data back into the callback when invoked.
  24. .SH AVAILABILITY
  25. Added in libssh2 version 1.2.3