/* ftp.h a minimal ftp */ #ifndef __ftp_h #define __ftp_h #include #include #include #include #include #include #include #include #include #define MSG_BODY 248 #define MSG_SIZE (MSG_BODY+8) #define PORT 36439 #define SEND 1 #define RECV 2 #define DATA 100 #define END_DATA 101 #define TEST 102 #define END_TEST 103 typedef struct{ int mtype; int msize; char mbody[MSG_BODY]; } MSG; typedef union{ MSG m; char buf[MSG_SIZE]; } MBUF; extern int errno; #endif /* #ifndef __ftp_h */