RetroArch
tcpip.h
Go to the documentation of this file.
1 #ifndef __TCPIP_H__
2 #define __TCPIP_H__
3 
4 #include "uIP/uip.h"
5 #include <sys/time.h>
6 #include <sys/types.h>
7 
8 #define AF_UNSPEC 0
9 #define AF_INET 2
10 #define PF_INET AF_INET
11 #define PF_UNSPEC AF_UNSPEC
12 
13 #define INADDR_ANY 0
14 #define INADDR_BROADCAST 0xffffffff
15 
16 #ifndef socklen_t
17 #define socklen_t u32_t
18 #endif
19 
20 #ifndef HAVE_IN_ADDR
21 #define HAVE_IN_ADDR
22 struct in_addr {
23  u32 s_addr;
24 };
25 #endif
26 
27 struct sockaddr_in {
28  u8 sin_len;
29  u8 sin_family;
30  u16 sin_port;
31  struct in_addr sin_addr;
32  s8 sin_zero[8];
33 };
34 
35 struct sockaddr {
36  u8 sa_len;
37  u8 sa_family;
38  s8 sa_data[14];
39 };
40 
41 struct dbginterface* tcpip_init(struct uip_ip_addr *localip,struct uip_ip_addr *netmask,struct uip_ip_addr *gateway,u16 port);
42 
43 void tcpip_close(s32_t s);
45 void tcpip_stoptimer(s32_t s);
47 s32_t tcpip_listen(s32_t s,u32_t backlog);
51 s32_t tcpip_write(s32_t s,const void *buffer,u32_t len);
52 
53 #endif
Definition: uip_ip.h:82
s32_t tcpip_accept(s32_t s)
Definition: tcpip.c:343
GLint namelen
Definition: glext.h:7899
GLuint const GLchar * name
Definition: glext.h:6671
void tcpip_close(s32_t s)
Definition: tcpip.c:434
u8_t sin_family
Definition: sockets.h:40
s32_t tcpip_socket()
Definition: tcpip.c:289
char sa_data[14]
Definition: sockets.h:49
struct dbginterface * tcpip_init(struct uip_ip_addr *localip, struct uip_ip_addr *netmask, struct uip_ip_addr *gateway, u16 port)
Definition: tcpip.c:239
GLenum GLsizei len
Definition: glext.h:7389
u16_t sin_port
Definition: sockets.h:41
int8_t s8
8bit signed integer
Definition: gctypes.h:22
includes all by default used to find thumbnails Please choose a single playlist first Add Entry Add Folder Select Files< multiple > Please fill out all required fields RetroArch updated successfully Please restart the application for the changes to take effect Contributors Move Down Load Remove Add Pass No shader passes Reset All Passes Download thumbnail Start on Download All Thumbnails This Playlist Configured in port
Definition: msg_hash_us.h:7699
Definition: debug_if.h:9
void tcpip_stoptimer(s32_t s)
Definition: tcpip.c:446
Definition: ip_addr.h:64
u8_t sa_len
Definition: sockets.h:47
GLdouble s
Definition: glext.h:6390
Definition: sockets.h:38
u8_t sa_family
Definition: sockets.h:48
void tcpip_starttimer(s32_t s)
Definition: tcpip.c:457
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
s32_t tcpip_write(s32_t s, const void *buffer, u32_t len)
Definition: tcpip.c:406
s32_t tcpip_read(s32_t s, void *buffer, u32_t len)
Definition: tcpip.c:361
Definition: sockets.h:46
s32_t tcpip_bind(s32_t s, struct sockaddr *name, socklen_t *namelen)
Definition: tcpip.c:310
s32_t tcpip_listen(s32_t s, u32_t backlog)
Definition: tcpip.c:328
struct in_addr sin_addr
Definition: sockets.h:42
char sin_zero[8]
Definition: sockets.h:43
s32 s32_t
Definition: cc.h:48
u8_t sin_len
Definition: sockets.h:39
u32 u32_t
Definition: cc.h:47
u32_t s_addr
Definition: ip_addr.h:65
Definition: video4linux2.c:51
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
uint32_t socklen_t
Definition: netdb.h:10