]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Header$ | |
5 | * | |
6 | * Copyright (C) 1987 by the Massachusetts Institute of Technology | |
7 | * | |
8 | * Private declarations of the Moira library. | |
9 | */ | |
10 | ||
11 | #include "mr_proto.h" | |
12 | ||
13 | extern CONNECTION _mr_conn; | |
14 | extern OPERATION _mr_send_op, _mr_recv_op; | |
15 | ||
16 | extern int mr_inited; | |
17 | extern int sending_version_no; | |
18 | ||
19 | /* | |
20 | * You are in a maze of twisty little FSM's, all different. | |
21 | */ | |
22 | ||
23 | #define S_RECV_START 1 | |
24 | #define S_RECV_DATA 2 | |
25 | #define S_DECODE_DATA 3 | |
26 | ||
27 | #define EVER (;;) | |
28 | ||
29 | #define CHECK_CONNECTED {if (!_mr_conn) return MR_NOT_CONNECTED;} | |
30 | ||
31 | /* | |
32 | * There should be an include file for these.. | |
33 | */ | |
34 | ||
35 | extern char *malloc(); | |
36 | #ifndef htonl | |
37 | extern u_long htonl(), ntohl(); | |
38 | extern u_short htons(), ntohs(); | |
39 | #endif /* htonl */ | |
40 | ||
41 | ||
42 |