File: tftpsubs.h

package info (click to toggle)
netkit-tftp 0.17-15
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 196 kB
  • ctags: 174
  • sloc: ansic: 1,617; makefile: 96; sh: 32
file content (12 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#define PKTSIZE SEGSIZE+4       /* should be moved to tftp.h */

void initsock(void);
void synchnet(int, int);
struct tftphdr *r_init(void);
struct tftphdr *w_init(void);
int readit(FILE *file, struct tftphdr **dpp, int convert);
int writeit(FILE *file, struct tftphdr **dpp, int ct, int convert);
void read_ahead(FILE *file, int convert /* if true, convert to ascii */);
int write_behind(FILE *file, int convert);

void mysignal(int, void (*func)(int));