equal
deleted
inserted
replaced
4 * This layer offers some functionality over what SDL_net offers directly: listening |
4 * This layer offers some functionality over what SDL_net offers directly: listening |
5 * sockets (called acceptors here) can be bound to port 0, which will make them listen |
5 * sockets (called acceptors here) can be bound to port 0, which will make them listen |
6 * on a random unused port, if one can be found. To support this feature, you can also |
6 * on a random unused port, if one can be found. To support this feature, you can also |
7 * query the local port that an acceptor is listening on. |
7 * query the local port that an acceptor is listening on. |
8 * |
8 * |
9 * Further, we support nonblocking reads and writes here. The writes are buffered (TODO), |
9 * Further, we support nonblocking reads here. |
10 * so that all data will be accepted, and you can configure a maximum buffer size |
|
11 * where the connection will be terminated. |
|
12 * |
|
13 * In order to ensure buffered data is actually sent out, you should regularly call |
|
14 * the tick function on your sockets. |
|
15 */ |
10 */ |
16 |
11 |
17 #ifndef SOCKET_H_ |
12 #ifndef SOCKET_H_ |
18 #define SOCKET_H_ |
13 #define SOCKET_H_ |
19 |
14 |