![]() |
io6Library
WIZnet Dual Stack TCP/IP Ethernet Controller Driver
|
#include <stdio.h>#include "loopback.h"#include "socket.h"#include "wizchip_conf.h"#include "stdlib.h"Go to the source code of this file.
Functions | |
| int32_t | loopback_tcps (uint8_t sn, uint8_t *buf, uint16_t port, uint8_t loopback_mode) |
| int32_t | loopback_tcpc (uint8_t sn, uint8_t *buf, uint8_t *destip, uint16_t destport, uint8_t loopback_mode) |
| int32_t | loopback_udps (uint8_t sn, uint8_t *buf, uint16_t port, uint8_t loopback_mode) |
Variables | |
| uint8_t * | msg_v4 = "IPv4 mode" |
| uint8_t * | msg_v6 = "IPv6 mode" |
| uint8_t * | msg_dual = "Dual IP mode" |
| int32_t loopback_tcps | ( | uint8_t | sn, |
| uint8_t * | buf, | ||
| uint16_t | port, | ||
| uint8_t | loopback_mode | ||
| ) |
Definition at line 17 of file loopback.c.
References AS_IPDUAL, AS_IPV4, AS_IPV6, close(), CS_CLR_INTERRUPT, CS_GET_INTERRUPT, ctlsocket(), DATA_BUF_SIZE, disconnect(), getSn_SR, getsockopt(), listen(), msg_dual, msg_v4, msg_v6, recv(), send(), Sn_IR_CON, Sn_MR_TCP4, Sn_MR_TCP6, Sn_MR_TCPD, SO_DESTIP, SO_DESTPORT, SO_EXTSTATUS, SO_RECVBUF, SO_STATUS, SOCK_CLOSE_WAIT, SOCK_CLOSED, SOCK_ESTABLISHED, SOCK_INIT, SOCK_IO_NONBLOCK, SOCK_OK, SOCKERR_SOCKNUM, socket(), and TCPSOCK_MODE.
| int32_t loopback_tcpc | ( | uint8_t | sn, |
| uint8_t * | buf, | ||
| uint8_t * | destip, | ||
| uint16_t | destport, | ||
| uint8_t | loopback_mode | ||
| ) |
Definition at line 175 of file loopback.c.
References AS_IPV4, AS_IPV6, close(), connect(), CS_CLR_INTERRUPT, CS_GET_INTERRUPT, ctlsocket(), DATA_BUF_SIZE, disconnect(), getSn_RX_RSR(), getsockopt(), recv(), send(), Sn_IR_CON, Sn_MR_TCP4, SO_RECVBUF, SO_STATUS, SOCK_CLOSE_WAIT, SOCK_CLOSED, SOCK_ESTABLISHED, SOCK_INIT, SOCK_OK, and socket().
| int32_t loopback_udps | ( | uint8_t | sn, |
| uint8_t * | buf, | ||
| uint16_t | port, | ||
| uint8_t | loopback_mode | ||
| ) |
Definition at line 325 of file loopback.c.
References AS_IPDUAL, AS_IPV4, AS_IPV6, DATA_BUF_SIZE, getsockopt(), msg_dual, msg_v4, msg_v6, recvfrom(), sendto(), size, Sn_MR_UDP4, Sn_MR_UDP6, Sn_MR_UDPD, SO_RECVBUF, SO_STATUS, SOCK_CLOSED, SOCK_IO_NONBLOCK, SOCK_UDP, and socket().
| uint8_t* msg_v4 = "IPv4 mode" |
Definition at line 13 of file loopback.c.
Referenced by loopback_tcps(), and loopback_udps().
| uint8_t* msg_v6 = "IPv6 mode" |
Definition at line 14 of file loopback.c.
Referenced by loopback_tcps(), and loopback_udps().
| uint8_t* msg_dual = "Dual IP mode" |
Definition at line 15 of file loopback.c.
Referenced by loopback_tcps(), and loopback_udps().
1.8.17