EMSI handshake FTSC-0088 compliant, protocol_order, EMSI TZUTC

This commit is contained in:
zx
2024-05-27 23:30:25 +03:00
parent 2c58629de4
commit 6ebf2fc7a3
15 changed files with 344 additions and 48 deletions
+3 -1
View File
@@ -71,6 +71,7 @@ int answ_system(e_session type, char *connstr, int inetd)
if( inetd )
{
log("Answering TCPIP call...");
if( connstr && *connstr )
state.connstr = (char*)xstrcpy(connstr);
else if( getpeername(0, (struct sockaddr*)&client, &clientlen) == -1 )
@@ -116,9 +117,10 @@ int answ_system(e_session type, char *connstr, int inetd)
port_carrier(0, TRUE);
rc = session();
log("Session ended up, rc=%d, inetd=%d", rc, inetd);
if( ( !inetd ) )
{
log("Deactivating modem port");
port_deinit(0, &oldtio);
port_close();
}