Compare commits

...

1 Commits

Author SHA1 Message Date
Félix Arreola Rodríguez 3bf9216a20 Agrego función para regresar usuario de la sesión. 2022-09-18 21:54:12 -05:00
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; 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);