aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
blob: 0b9b09910f5a8cc06276ca59fcb516f859ce4528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef SOCKET_H
#define SOCKET_H

#include "config.h"

#include <stdlib.h>

int SocketConnect(const char *host, short port);

int SocketDisconnect(int sock);

int SocketSendAll(int sock, const char *buf, size_t *len);

enum
{
    EV_READ = 1,
    EV_WRITE = 2
};

int SocketSelect(int sock, int *events, int timeout);

#endif