Initial commit

This commit is contained in:
Hector Martin
2016-11-23 14:35:12 +09:00
commit 5b1c4f85b6
296 changed files with 39925 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#ifndef _TCP_H_
#define _TCP_H_
#include <gctypes.h>
#include <ogc/mutex.h>
s32 tcp_socket (void);
s32 tcp_connect (char *host, u16 port);
s32 tcp_listen (u16 port, s32 backlog);
char * tcp_readln (s32 s, u16 max_length, s64 start_time, u16 timeout);
bool tcp_read (s32 s, u8 *buffer, u32 length, const mutex_t *mutex, u32 *progress);
bool tcp_write (s32 s, const u8 *buffer, u32 length, const mutex_t *mutex,
u32 *progress);
#endif