10 #define PF_INET AF_INET
11 #define PF_UNSPEC AF_UNSPEC
14 #define INADDR_BROADCAST 0xffffffff
17 #define socklen_t u32_t
31 struct in_addr sin_addr
;
41 struct dbginterface
* tcpip_init(struct uip_ip_addr
*localip
,struct uip_ip_addr
*netmask
,struct uip_ip_addr
*gateway
,u16 port
);
43 void tcpip_close(s32_t s
);
44 void tcpip_starttimer(s32_t s
);
45 void tcpip_stoptimer(s32_t s
);
47 s32_t
tcpip_listen(s32_t s
,u32_t backlog
);
48 s32_t
tcpip_bind(s32_t s
,struct sockaddr
*name
,socklen_t
*namelen
);
49 s32_t
tcpip_accept(s32_t s
);
50 s32_t
tcpip_read(s32_t s
,void *buffer
,u32_t len
);
51 s32_t
tcpip_write(s32_t s
,const void *buffer
,u32_t len
);