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.
 
 
 
 

43 lines
1.7 KiB

  1. .TH libssh2_session_init_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_init_ex - initializes an SSH session object
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. LIBSSH2_SESSION *
  7. libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*myalloc)), LIBSSH2_FREE_FUNC((*myfree)), LIBSSH2_REALLOC_FUNC((*myrealloc)), void *abstract);
  8. LIBSSH2_SESSION *
  9. libssh2_session_init(void);
  10. .SH DESCRIPTION
  11. \fImyalloc\fP - Custom allocator function. Refer to the section on Callbacks
  12. for implementing an allocator callback. Pass a value of NULL to use the
  13. default system allocator.
  14. \fImyfree\fP - Custom de-allocator function. Refer to the section on Callbacks
  15. for implementing a deallocator callback. Pass a value of NULL to use the
  16. default system deallocator.
  17. \fImyrealloc\fP - Custom re-allocator function. Refer to the section on
  18. Callbacks for implementing a reallocator callback. Pass a value of NULL to
  19. use the default system reallocator.
  20. \fIabstract\fP - Arbitrary pointer to application specific callback data.
  21. This value will be passed to any callback function associated with the named
  22. session instance.
  23. Initializes an SSH session object. By default system memory allocators
  24. (malloc(), free(), realloc()) will be used for any dynamically allocated memory
  25. blocks. Alternate memory allocation functions may be specified using the
  26. extended version of this API call, and/or optional application specific data
  27. may be attached to the session object.
  28. This method must be called first, prior to configuring session options or
  29. starting up an SSH session with a remote server.
  30. .SH RETURN VALUE
  31. Pointer to a newly allocated LIBSSH2_SESSION instance, or NULL on errors.
  32. .SH SEE ALSO
  33. .BR libssh2_session_free(3)
  34. .BR libssh2_session_handshake(3)