@ -61,6 +61,10 @@ If BIND was previously commanded on this connection, the server must respond wit
Example: SERV EOF
Example: SERV EOF
libremotelab_fpgaviewer EOF
libremotelab_fpgaviewer EOF
TSTP:
Returns a long long value containing the termination timestamp, if set
If an administrator has enabled automatic termination of the client's session, a UNIX timestamp with the exact termination time must be returned. If automatic termination has not been enabled, the server must return zero.
QUIT:
QUIT:
Gracefully terminates the connection.
Gracefully terminates the connection.
The server should return the case-sensitive text "OK" and must immediately close all active connections for the current user.
The server should return the case-sensitive text "OK" and must immediately close all active connections for the current user.
printf("[DEBUG] Connection from %s closed\n\r",m_remoteHost.ascii());
printf("[DEBUG] Connection from %s closed\n\r",m_remoteHost.ascii());
if(m_bound){
// Update database
// Update database
m_databaseActivityCursor->select(TQString("station='%1' AND username='%2' AND realmname='%3' AND serviceid=%4").arg(m_stationID).arg(m_authenticatedUserName).arg(m_authenticatedRealmName).arg(m_serviceID));
m_databaseActivityCursor->select(TQString("station='%1' AND username='%2' AND realmname='%3'").arg(m_stationID).arg(m_authenticatedUserName).arg(m_authenticatedRealmName));
m_databaseActivityCursor->select(TQString("station='%1' AND username='%2' AND realmname='%3' AND serviceid=%4").arg(m_stationID).arg(m_authenticatedUserName).arg(m_authenticatedRealmName).arg(m_serviceID));
printf("[DEBUG] SERV command parameter was %s from user %s@%s\n\r",libname.ascii(),m_authenticatedUserName.ascii(),m_authenticatedRealmName.ascii());fflush(stdout);
printf("[DEBUG] SERV command parameter was %s from user %s@%s\n\r",libname.ascii(),m_authenticatedUserName.ascii(),m_authenticatedRealmName.ascii());fflush(stdout);
m_databaseActivityCursor->select(TQString("username='%1' AND realmname='%2'").arg(m_authenticatedUserName).arg(m_authenticatedRealmName));
m_databaseActivityCursor->select(TQString("username='%1' AND realmname='%2' AND serviceid=0").arg(m_authenticatedUserName).arg(m_authenticatedRealmName));