Agrego función para regresar usuario de la sesión.

Félix Arreola Rodríguez 2022-09-18 21:54:12 -05:00
parent 4e6cbe0acb
commit 3bf9216a20
2 changed files with 6 additions and 0 deletions

View File

@ -1013,3 +1013,7 @@ int ftp_session_get_poll (FTPSession *session) {
return session->poll;
}
const char *ftp_session_get_user (FTPSession *session) {
return session->user;
}

View File

@ -56,6 +56,8 @@ int ftp_session_get_control_socket (FTPSession *session);
int ftp_session_get_data_socket (FTPSession *session);
int ftp_session_get_last_code (FTPSession *session);
char * ftp_session_get_last_message (FTPSession *session);
const char *ftp_session_get_user (FTPSession *session);
void ftp_session_free (FTPSession *session);
void ftp_session_set_multiline_func (FTPSession *session, FTPLineFunc func, void *data);