mirror of
https://github.com/FIX94/hbc.git
synced 2024-11-29 14:04:19 +01:00
18 lines
442 B
C
18 lines
442 B
C
#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
|
|
|