The logical nodenumber for the bbs is now issued by mbtask
This commit is contained in:
10
lib/client.c
10
lib/client.c
@@ -51,6 +51,7 @@ int socket_connect(char *user, char *prg, char *city)
|
||||
{
|
||||
int s;
|
||||
static char buf[SS_BUFSIZE], tty[18];
|
||||
char *tmp;
|
||||
|
||||
myname = prg;
|
||||
|
||||
@@ -123,12 +124,19 @@ int socket_connect(char *user, char *prg, char *city)
|
||||
}
|
||||
|
||||
strcpy(buf, socket_receive());
|
||||
if (strncmp(buf, "100:0;", 6) != 0) {
|
||||
if (strncmp(buf, "100:1,", 6) != 0) {
|
||||
printf("AINI not acknowledged by the server\n");
|
||||
sock = -1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Extract nodenumber from the reply.
|
||||
*/
|
||||
tmp = strtok(buf, ",");
|
||||
tmp = strtok(NULL, ";");
|
||||
iNode = atoi(tmp);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
@@ -105,7 +105,6 @@ int iExpired; /* Check if users time ran out */
|
||||
char sUnixName[9]; /* Unix login name */
|
||||
time_t Time2Go; /* Calculated time to force logout */
|
||||
struct tm *l_date; /* Structure for Date */
|
||||
int iNode; /* Current node number */
|
||||
|
||||
time_t ltime;
|
||||
time_t Time_Now;
|
||||
|
@@ -1964,15 +1964,6 @@ struct _route {
|
||||
|
||||
|
||||
|
||||
/*
|
||||
typedef struct _srv_auth {
|
||||
struct _srv_auth *next;
|
||||
char *hostname;
|
||||
char *authcode;
|
||||
} srv_auth;
|
||||
*/
|
||||
|
||||
|
||||
extern char SigName[32][16];
|
||||
|
||||
|
||||
@@ -2007,6 +1998,7 @@ char *printablec(char);
|
||||
/*
|
||||
* From client.c
|
||||
*/
|
||||
int iNode; /* Current node number */
|
||||
int socket_connect(char *, char *, char *);
|
||||
int socket_send(char *);
|
||||
char *socket_receive(void);
|
||||
|
Reference in New Issue
Block a user