return s;
}
+BOOL
+iso_recv_connect(int server_sock)
+{
+ STREAM s;
+ uint8 code;
+
+ tcp_recv_connect(server_sock);
+
+ s = iso_recv_msg(&code);
+ if (s == NULL)
+ return 0;
+
+ if (code != ISO_PDU_CR)
+ {
+ error("expected CR, got 0x%x\n", code);
+ return 0;
+ }
+
+ DEBUG(("Got ISO connection request\n"));
+
+ return 1;
+}
+
/* Disconnect from the ISO layer */
void
iso_disconnect(void)
STREAM iso_init(int length);
void iso_send(STREAM s);
STREAM iso_recv(void);
-BOOL iso_connect(char *server, char *username);
+BOOL iso_recv_connect(int server_sock);
void iso_disconnect(void);
/* licence.c */
void licence_process(STREAM s);
{
int server_sock = create_server_socket();
for ( ;; ) {
- tcp_recv_connect(server_sock);
+ iso_recv_connect(server_sock);
+ printf("Got connection.\n");
serve_client();
+ printf("Client closed.\n");
}
}