pcdef.h

ldmud-3.2.9/src/hosts/msdos/pcdef.h · 747 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

/* portable communication, common definitions - WA */

#include <errno.h>
#include <sys/time.h>

#define ECOMNIL    0  /* no error */
#define ECOMUSG  128  /* usage error */
#define ECOMLNK  129  /* link error */
#define ECOMFLW  130  /* flow problem */
#define ECOMPRM  131  /* preempted */

struct caddr {
    int addr;
};

typedef struct _c_time_t {
    int dummy;
} c_time_t;

void c_listen(void);
void c_shutdown(void);
int c_read(int channel,char *data,int length);
int c_write(int channel,char *data,int length);
int c_accept(struct caddr *addr,int *length);
int c_select(int *mask,struct timeval/*c_time_t*/ *timeout);
int c_close(int channel);
void c_echo(int channel,int mode);
int c_getaddr(int channel,struct caddr *addr,int *length);

Site Stats

Snippets: 1791
Codebases: 571