33#define bzero(a,n) memset(a,0,n)
45#include </usr/include/sys/errno.h>
48#include <sys/socket.h>
49#include <netinet/in.h>
78#define MAX_NOFILE 4096
87#define FD_SETSIZE MAX_NOFILE
92#define MAXSELFD MAX_NOFILE
94#define NFDBITS (sizeof(fd_mask) * NBBY)
97#define howmany(x, y) (((x)+((y)-1))/(y))
100#define bzero(a,n) memset(a,0,n)
101#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
102#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
103#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
104#define FD_ZERO(p) bzero((INTS1 *)(p), sizeof(*(p)))
128#include <sys/types.h>
130#include <sys/socket.h>
131#include <netinet/in.h>
134#include <arpa/inet.h>
141#include <sys/types.h>
145#include <netinet/in.h>
147#include <arpa/inet.h>
155#include <sys/types.h>
160#include <sys/socket.h>
162#include <netinet/in.h>
164#include <arpa/inet.h>
172#include <sys/types.h>
177#include <sys/socket.h>
179#include <netinet/in.h>
181#include <arpa/inet.h>
189#include <sys/types.h>
191#include <sys/socket.h>
193#include <netinet/in.h>
195#include <arpa/inet.h>
210#define MAX_NOFILE 4096
219#define FD_SETSIZE MAX_NOFILE
224#define MAXSELFD MAX_NOFILE
225typedef INTS4 fd_mask;
226#define NFDBITS (sizeof(fd_mask) * NBBY)
229#define howmany(x, y) (((x)+((y)-1))/(y))
247#include <sys/types.h>
250#include <sys/socket.h>
252#include <netinet/in.h>
254#include <arpa/inet.h>
269#define MAX_NOFILE 4096
278#define FD_SETSIZE MAX_NOFILE
283#define MAXSELFD MAX_NOFILE
285#define NFDBITS (sizeof(fd_mask) * NBBY)
288#define howmany(x, y) (((x)+((y)-1))/(y))
296#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
297#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
298#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
314#define PORTSERV_DATA "portserv.dat;1"
316#define PORTSERV_DATA "portserv.dat"
320#define PORTSERVER_PORT 1000
321#define PORTSERVER_M_DEF "VSBP"
322#define PORTSERVER_S_DEF "DSAG"
347#include <ucx$inetdef.h>
350#define $DSC_FXDLEN(name,string) name.dsc$w_length = strlen(string); \
351 strcpy(name.dsc$a_pointer,string);
362#define f_stc_nosig( ps_server ) (ps_server)->i_signals = 100;
368#define STC__FAILURE 0
369#define STC__SUCCESS 1
370#define STC__INVSOCK 2
372#define STC__NGBUFSIZE 4
373#define STC__INVTIME 5
374#define STC__TIMEOUT 6
375#define STC__NOTSOCK 7
376#define STC__INVADDR 8
377#define STC__INVADDRF 9
378#define STC__SOCKNSUP 10
379#define STC__INVPROTO 11
380#define STC__SOCKTABF 12
381#define STC__SOCKSPAF 13
382#define STC__SOCKISC 14
383#define STC__CONNTOUT 15
384#define STC__NETUNREA 16
385#define STC__PORTINUS 17
386#define STC__SOCKISP 18
387#define TPS__ECPORTS 19
388#define TPS__EREGSERV 20
389#define TPS__EWTOPORTS 21
390#define TPS__ERMFRPORTS 22
391#define TPS__EGSERVICE 23
392#define STC__BROPIPE 24
393#define STC__NODATA 25
394#define STC__ECONNREF 26
396#define STC__ECONNRES 28
398#define TCPCOMM_INCLUDE 1
INTS4 f_stc_write(void *p_buffer, INTS4 i_buflen, INTS4 i_channel)
INTS4 f_stc_read(void *p_buffer, INTS4 i_buflen, INTS4 i_channel, INTS4 i_timeout)
INTS4 f_stc_listenserver(struct s_tcpcomm *ps_server)
void f_stc_swap4(INTS4 *)
INTS4 f_stc_connectserver(CHARS *c_node, INTS4 l_port, INTS4 *pi_channel, struct s_tcpcomm *ps_client)
INTS4 f_stc_discclient(INTS4 i_channel)
INTS4 f_stc_createserver(INTS4 *pl_port, struct s_tcpcomm *ps_server)
INTS4 f_stc_acceptclient(struct s_tcpcomm *ps_server, INTS4 *pi_channel)
INTS4 f_stc_close(struct s_tcpcomm *ps_tcp)
INTS4 f_stc_disperror(INTS4 i_error, CHARS *c_dest, INTS4 i_out)
struct hostent * hostentptr
struct hostent hostentstruct
struct sockaddr_in sock sock_name