The logical nodenumber for the bbs is now issued by mbtask

This commit is contained in:
Michiel Broek
2004-09-09 19:02:43 +00:00
parent 2343ed5a8b
commit 61f89c0cfc
8 changed files with 25 additions and 21 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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);