lpc4/lib/
lpc4/lib/doc/efun/
lpc4/lib/doc/lfun/
lpc4/lib/doc/operators/
lpc4/lib/doc/simul_efuns/
lpc4/lib/doc/types/
lpc4/lib/etc/
lpc4/lib/include/
lpc4/lib/include/arpa/
lpc4/lib/obj/d/
lpc4/lib/save/
lpc4/lib/secure/
lpc4/lib/std/
lpc4/lib/std/living/
/*
 * comm.h -- definitions and prototypes for comm.c
 *
 */

#ifndef _COMM_H_
#define _COMM_H_

#ifdef _AIX
#include <sys/select.h>
#endif /* _AIX */

#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

#ifndef ARPA_INET_H
#include <arpa/inet.h>
#define ARPA_INET_H
#endif

#define MAX_TEXT                   2048
#define MAX_SOCKET_PACKET_SIZE     1024
#define DESIRED_SOCKET_PACKET_SIZE 800
#define MESSAGE_BUF_SIZE           MESSAGE_BUFFER_SIZE /* from options.h */
#define OUT_BUF_SIZE               2048
#define DFAULT_PROTO               0   /* use the appropriate protocol */
#define I_NOECHO                   0x1 /* input_to flag */
#define I_NOESC                    0x2 /* input_to flag */

enum msgtypes {NAMEBYIP, IPBYNAME};

void query_addr_name(struct in_addr addr);
char *query_ip_name(struct in_addr addr);
INLINE void process_io();
#endif /* _COMM_H_ */