4 #include "utility/w5100.h"
6 extern uint8_t socket(SOCKET s, uint8_t protocol, uint16_t port, uint8_t flag);
7 extern uint8_t socketStatus(SOCKET s);
8 extern void close(SOCKET s);
9 extern uint8_t connect(SOCKET s, uint8_t * addr, uint16_t port);
10 extern void disconnect(SOCKET s);
11 extern uint8_t listen(SOCKET s);
12 extern uint16_t send(SOCKET s,
const uint8_t * buf, uint16_t len);
13 extern int16_t recv(SOCKET s, uint8_t * buf, int16_t len);
14 extern int16_t recvAvailable(SOCKET s);
15 extern uint16_t peek(SOCKET s, uint8_t *buf);
16 extern uint16_t sendto(SOCKET s,
const uint8_t * buf, uint16_t len, uint8_t * addr, uint16_t port);
17 extern uint16_t recvfrom(SOCKET s, uint8_t * buf, uint16_t len, uint8_t * addr, uint16_t *port);
18 extern void flush(SOCKET s);
20 extern uint16_t igmpsend(SOCKET s,
const uint8_t * buf, uint16_t len);
29 extern int startUDP(SOCKET s, uint8_t* addr, uint16_t port);
35 uint16_t bufferData(SOCKET s, uint16_t offset,
const uint8_t* buf, uint16_t len);
41 int sendUDP(SOCKET s);