1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-31 23:30:25 +03:00

Add LIBSSH2_TRACE_SOCKET context for tracing send() and recv()

Helpful in debugging the -39 errors.
This commit is contained in:
Peter Stuge
2009-12-08 08:40:30 +01:00
parent 1256c61815
commit 1a491c6f00
5 changed files with 46 additions and 2 deletions

View File

@@ -1022,6 +1022,8 @@ struct _LIBSSH2_MAC_METHOD
#define LIBSSH2_DBG_SFTP 6
#define LIBSSH2_DBG_ERROR 7
#define LIBSSH2_DBG_PUBLICKEY 8
#define LIBSSH2_DBG_SOCKET 9
#ifdef LIBSSH2DEBUG
void _libssh2_debug(LIBSSH2_SESSION * session, int context, const char *format,
...);
@@ -1271,4 +1273,7 @@ int _libssh2_pem_decode_integer(unsigned char **data, unsigned int *datalen,
} while(1)
#define ARRAY_SIZE(a) (sizeof ((a)) / sizeof ((a)[0]))
#endif /* LIBSSH2_H */