Revision 6cb9c6d3 slirp/socket.h

b/slirp/socket.h
74 74
#define SS_HOSTFWD		0x1000	/* Socket describes host->guest forwarding */
75 75
#define SS_INCOMING		0x2000	/* Connection was initiated by a host on the internet */
76 76

  
77
struct socket * solookup _P((struct socket *, struct in_addr, u_int, struct in_addr, u_int));
78
struct socket * socreate _P((Slirp *));
79
void sofree _P((struct socket *));
80
int soread _P((struct socket *));
81
void sorecvoob _P((struct socket *));
82
int sosendoob _P((struct socket *));
83
int sowrite _P((struct socket *));
84
void sorecvfrom _P((struct socket *));
85
int sosendto _P((struct socket *, struct mbuf *));
86
struct socket * tcp_listen _P((Slirp *, u_int32_t, u_int, u_int32_t, u_int,
87
                               int));
88
void soisfconnecting _P((register struct socket *));
89
void soisfconnected _P((register struct socket *));
90
void sofwdrain _P((struct socket *));
77
struct socket * solookup(struct socket *, struct in_addr, u_int, struct in_addr, u_int);
78
struct socket * socreate(Slirp *);
79
void sofree(struct socket *);
80
int soread(struct socket *);
81
void sorecvoob(struct socket *);
82
int sosendoob(struct socket *);
83
int sowrite(struct socket *);
84
void sorecvfrom(struct socket *);
85
int sosendto(struct socket *, struct mbuf *);
86
struct socket * tcp_listen(Slirp *, u_int32_t, u_int, u_int32_t, u_int,
87
                               int);
88
void soisfconnecting(register struct socket *);
89
void soisfconnected(register struct socket *);
90
void sofwdrain(struct socket *);
91 91
struct iovec; /* For win32 */
92 92
size_t sopreprbuf(struct socket *so, struct iovec *iov, int *np);
93 93
int soreadbuf(struct socket *so, const char *buf, int size);

Also available in: Unified diff