home *** CD-ROM | disk | FTP | other *** search
- #ifndef _SOCKET_H
- #define _SOCKET_H
-
- #ifndef _GLOBAL_H
- #include "global.h"
- #endif
-
- #ifdef ANSIPROTO
- #include <stdarg.h>
- #endif
-
- #ifndef _MBUF_H
- #include "mbuf.h"
- #endif
-
- #ifndef _PROC_H
- #include "proc.h"
- #endif
-
- #ifndef _USOCK_H
- #include "usock.h"
- #endif
-
-
- extern int32 Ip_addr;
- /* In socket.c: */
- int accept __ARGS((int s,char *peername,int *peernamelen));
- int bind __ARGS((int s,char *name,int namelen));
- int close_s __ARGS((int s));
- int connect __ARGS((int s,char *peername,int peernamelen));
- void freesock __ARGS((struct proc *pp));
- int getpeername __ARGS((int s,char *peername,int *peernamelen));
- int getsockname __ARGS((int s,char *name,int *namelen));
- int listen __ARGS((int s,int backlog));
- int recv_mbuf __ARGS((int s,struct mbuf **bpp,int flags,char *from,int *fromlen));
- int send_mbuf __ARGS((int s,struct mbuf *bp,int flags,char *to,int tolen));
- int setflush __ARGS((int s,int c));
- int shutdown __ARGS((int s,int how));
- int socket __ARGS((int af,int type,int protocol));
- void sockinit __ARGS((void));
- int sockkick __ARGS((int s));
- int socklen __ARGS((int s,int rtx));
- struct proc *sockowner __ARGS((int s,struct proc *newowner));
- int usesock __ARGS((int s));
- int socketpair __ARGS((int af,int type,int protocol,int sv[]));
-
- /* In sockuser.c: */
- void flushsocks __ARGS((void));
- int keywait __ARGS((char *prompt,int flush));
- int recv __ARGS((int s,char *buf,int len,int flags));
- int recvchar __ARGS((int s));
- int recvfrom __ARGS((int s,char *buf,int len,int flags,char *from,int *fromlen));
- int recvline __ARGS((int s,char *buf,unsigned len));
- int rrecvchar __ARGS((int s));
- int send __ARGS((int s,char *buf,int len,int flags));
- int sendto __ARGS((int s,char *buf,int len,int flags,char *to,int tolen));
- int seteol __ARGS((int s,char *seq));
- int sockmode __ARGS((int s,int mode));
- void tflush __ARGS((void));
- int tprintf __ARGS((char *fmt,...));
- int tputc __ARGS((char c));
- int tputs __ARGS((char *s));
- int usflush __ARGS((int s));
- int usprintf __ARGS((int s,char *fmt,...));
- int usputc __ARGS((int s,char c));
- int usputs __ARGS((int s,char *x));
- int usvprintf __ARGS((int s,char *fmt, va_list args));
-
- /* In file sockutil.c: */
- struct usock *itop __ARGS((int s));
- char *psocket __ARGS((void *p));
- char *sockerr __ARGS((int s));
- char *sockstate __ARGS((int s));
-
- #endif /* _SOCKET_H */
-