home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / misc / tcpipsrc / socket.h < prev    next >
C/C++ Source or Header  |  1990-11-10  |  2KB  |  76 lines

  1. #ifndef    _SOCKET_H
  2. #define    _SOCKET_H
  3.  
  4. #ifndef    _GLOBAL_H
  5. #include "global.h"
  6. #endif
  7.  
  8. #ifdef    ANSIPROTO
  9. #include <stdarg.h>
  10. #endif
  11.  
  12. #ifndef    _MBUF_H
  13. #include "mbuf.h"
  14. #endif
  15.  
  16. #ifndef _PROC_H
  17. #include "proc.h"
  18. #endif
  19.  
  20. #ifndef _USOCK_H
  21. #include "usock.h"
  22. #endif
  23.  
  24.  
  25. extern int32 Ip_addr;
  26. /* In socket.c: */
  27. int accept __ARGS((int s,char *peername,int *peernamelen));
  28. int bind __ARGS((int s,char *name,int namelen));
  29. int close_s __ARGS((int s));
  30. int connect __ARGS((int s,char *peername,int peernamelen));
  31. void freesock __ARGS((struct proc *pp));
  32. int getpeername __ARGS((int s,char *peername,int *peernamelen));
  33. int getsockname __ARGS((int s,char *name,int *namelen));
  34. int listen __ARGS((int s,int backlog));
  35. int recv_mbuf __ARGS((int s,struct mbuf **bpp,int flags,char *from,int *fromlen));
  36. int send_mbuf __ARGS((int s,struct mbuf *bp,int flags,char *to,int tolen));
  37. int setflush __ARGS((int s,int c));
  38. int shutdown __ARGS((int s,int how));
  39. int socket __ARGS((int af,int type,int protocol));
  40. void sockinit __ARGS((void));
  41. int sockkick __ARGS((int s));
  42. int socklen __ARGS((int s,int rtx));
  43. struct proc *sockowner __ARGS((int s,struct proc *newowner));
  44. int usesock __ARGS((int s));
  45. int socketpair __ARGS((int af,int type,int protocol,int sv[]));
  46.  
  47. /* In sockuser.c: */
  48. void flushsocks __ARGS((void));
  49. int keywait __ARGS((char *prompt,int flush));
  50. int recv __ARGS((int s,char *buf,int len,int flags));
  51. int recvchar __ARGS((int s));
  52. int recvfrom __ARGS((int s,char *buf,int len,int flags,char *from,int *fromlen));
  53. int recvline __ARGS((int s,char *buf,unsigned len));
  54. int rrecvchar __ARGS((int s));
  55. int send __ARGS((int s,char *buf,int len,int flags));
  56. int sendto __ARGS((int s,char *buf,int len,int flags,char *to,int tolen));
  57. int seteol __ARGS((int s,char *seq));
  58. int sockmode __ARGS((int s,int mode));
  59. void tflush __ARGS((void));
  60. int tprintf __ARGS((char *fmt,...));
  61. int tputc __ARGS((char c));
  62. int tputs __ARGS((char *s));
  63. int usflush __ARGS((int s));
  64. int usprintf __ARGS((int s,char *fmt,...));
  65. int usputc __ARGS((int s,char c));
  66. int usputs __ARGS((int s,char *x));
  67. int usvprintf __ARGS((int s,char *fmt, va_list args));
  68.  
  69. /* In file sockutil.c: */
  70. struct usock *itop __ARGS((int s));
  71. char *psocket __ARGS((void *p));
  72. char *sockerr __ARGS((int s));
  73. char *sockstate __ARGS((int s));
  74.  
  75. #endif    /* _SOCKET_H */
  76.