Compare commits

...

1 Commits

Author SHA1 Message Date
Félix Arreola Rodríguez 2424bfa5a7 Agrego función para regresar usuario de la sesión. 2022-09-18 22:53:11 -05:00
3 changed files with 7 additions and 0 deletions

View File

@ -1013,3 +1013,7 @@ int ftp_session_get_poll (FTPSession *session) {
return session->poll; 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_data_socket (FTPSession *session);
int ftp_session_get_last_code (FTPSession *session); int ftp_session_get_last_code (FTPSession *session);
char * ftp_session_get_last_message (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_free (FTPSession *session);
void ftp_session_set_multiline_func (FTPSession *session, FTPLineFunc func, void *data); void ftp_session_set_multiline_func (FTPSession *session, FTPLineFunc func, void *data);

View File

@ -14,3 +14,4 @@ ftp_session_get_last_code
ftp_session_get_last_message ftp_session_get_last_message
ftp_session_free ftp_session_free
ftp_session_set_multiline_func ftp_session_set_multiline_func
ftp_session_get_user