19 lines
492 B
C
19 lines
492 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* dev);
|
|
void sock_set_match(int n, int match);
|
|
void sock_ok(int n);
|
|
void sock_err(int n);
|
|
void* sock_device(int n);
|
|
#endif
|