Files
sics/site_ansto/hardsup/Digital/sock.h
Douglas Clowes 4623b25ccd Progressive refinement
r1199 | dcl | 2006-10-26 18:38:34 +1000 (Thu, 26 Oct 2006) | 2 lines
2012-11-15 12:49:46 +11:00

19 lines
481 B
C

#ifndef _SOCK_H_
#define _SOCK_H_
#include "utility.h"
void sock_init(void);
void sock_listen(int addr, int (*method)(void* arg, const char* cmd), void* arg);
void sock_check(int timeout);
void sock_close(int n);
void sock_line(int n);
void sock_input(int n);
void sock_accept(int n);
void sock_send(int n, BUFFER* buffer);
void sock_report(BUFFER* bp, int match);
void sock_set_match(int n, int match);
void sock_ok(int n);
void sock_err(int n);
void* sock_device(int n);
#endif