-
Notifications
You must be signed in to change notification settings - Fork 0
/
QLip.h
38 lines (30 loc) · 800 Bytes
/
QLip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*********************************************************************
* QLIP (c) 1998 Jonathan Hudson & Richard Zidlicky
*
* This code is part of the uqlx QDOS emulator for Unix
*
* This file is outside the uqlx copyright and may be freely copied,
* used and modified for any non-commercial purpose.
*
********************************************************************/
#ifdef IPDEV
#include <sys/types.h>
#include <sys/socket.h>
#if 0
#include <arpa/inet.h>
#else
#include <netinet/in.h>
#endif
typedef struct
{
int status; /* 0 OK, -1 check connection(async), -2 error */
int lerrno;
int sock;
struct sockaddr_in name;
} ipdev_t;
int ip_init(int,void *);
int ip_test(int,char *);
int ip_open(int, void **);
void ip_close(int , void *);
void ip_io(int , void *);
#endif