2 * macnet.h -- Mac OS networtking stuff for PuTTY
5 #ifndef _PUTTY_MACNET_H
6 #define _PUTTY_MACNET_H
9 #include <AddressXlation.h>
11 #include <Processes.h>
15 struct HostInfo host_info;
18 int inbuf_head, inbuf_reap, inbuf_size;
19 unsigned char *outbuf;
20 int outbuf_head, outbuf_reap, outbuf_size;
21 ProcessSerialNumber psn;
24 typedef Socket *SOCKET
26 #define INVALID_SOCKET NULL
30 extern int send(SOCKET, const void *, size_t, int);
31 extern int recv(SOCKET, void *, size_t, int);
32 extern SOCKET tcp_open(const char *, int, char **);
33 extern void tcp_close(SOCKET);
34 extern void tcp_abort(SOCKET);
40 * c-file-style: "simon"