friendev EtherDune TCP/IP library
|
#include <ACross.h>
Go to the source code of this file.
Macros | |
#define | EtherDune_BUFFER_SIZE 566 |
RAM memory buffer size to hold a packet. More... | |
#define | EtherDune_SAMPLE_SIZE 42 |
Minimum amount of bytes to read to decide whether we want the rest of the packet or not. More... | |
#define | ENABLE_IP_RX_CHECKSUM true |
Whether or not to check the integrity of the IP header. More... | |
#define | ENABLE_UDPTCP_RX_CHECKSUM true |
Whether or not to check the integrity of TCP and UDP packets. More... | |
#define | ENABLE_ICMP_RX_CHECKSUM true |
Whether or not to check the integrity of ICMP packets. More... | |
#define | MAX_FRAMELEN 1500 |
max frame length which the conroller will accept: (note: maximum ethernet frame length would be 1518) More... | |
#define | RXBUFFER_SIZE 3072 |
size of the receive buffer size. More... | |
#define | TXBUFFER_SIZE 1024 |
size of the transmit buffer size. More... | |
#define | SCK_TIMEOUT_SYN_SENT_MS 5000 |
(client) represents waiting for a matching connection request after having sent a connection request. More... | |
#define | SCK_TIMEOUT_SYN_RECEIVED_MS 5000 |
(server) SYN has been received, SYN ACK was sent and now waiting for ACK. More... | |
#define | SCK_TIMEOUT_FIN_WAIT_1_MS 6000 |
(both server and client) represents waiting for a connection termination request from the remote TCP, or an acknowledgment of the connection termination request previously sent. More... | |
#define | SCK_TIMEOUT_FIN_WAIT_2_MS 2000 |
(both server and client) represents waiting for a connection termination request from the remote TCP. More... | |
#define | SCK_TIMEOUT_CLOSE_WAIT_MS 2000 |
(both server and client) represents waiting for a connection termination request from the local user. More... | |
#define | SCK_TIMEOUT_CLOSING_MS 2000 |
(both server and client) represents waiting for a connection termination request acknowledgment from the remote TCP. More... | |
#define | SCK_TIMEOUT_LAST_ACK_MS 2000 |
(both server and client) represents waiting for an acknowledgment of the connection termination request previously sent to the remote TCP (which includes an acknowledgment of its connection termination request). More... | |
#define | SCK_TIMEOUT_TIME_WAIT_MS 3000 |
(either server or client) represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request. More... | |
#define | SCK_TIMEOUT_RESOLVING_MS 3000 |
waiting for a DNS query to resolve. More... | |
#define | DNS_TIMEOUT_QUERY_MS 5000 |
How long to wait before giving up on a DNS query. More... | |
#define | ENABLE_DHCP_HOSTNAME _DEBUG |
Enables sending hostname to DHCP server. More... | |
#define | DHCP_TIMEOUT_SELECTING_MS 1000 |
(in milliseconds) DHCP timeout in the SELECTING DHCP phase (waiting for reply to DHCP DISCOVER) More... | |
#define | DHCP_TIMEOUT_REQUESTING_MS 5000 |
(in milliseconds) DHCP timeout in the REQUESTING phase (waiting for reply to DHCP REQUEST) More... | |
#define | DHCP_TIMEOUT_BOUND_MS 1000 |
(in milliseconds) set to 1 second so as to decrement the renewal timer More... | |
#define | HTTP_SERVER_HEADER_NAME_MAX_LENGTH 20 |
max buffer to hold a header name, e.g. More... | |
#define | HTTP_SERVER_HEADER_VALUE_MAX_LENGTH 20 |
max buffer to hold a header value, e.g. More... | |
#define | HTTP_SERVER_QUERY_STRING_MAX_LENGTH 41 |
max buffer to hold the entire query string, e.g. More... | |
Variables | |
static const uint16_t | NETWORK_TIMER_RESOLUTION = 200 |
Resolution of the NetworkService timer. More... | |
static const uint8_t | TCP_SRC_PORT_H = 250 |
Indicates the most significant byte of the source port number that EtherDune will use by default when making outgoing connections. More... | |
static const uint8_t | UDP_SRC_PORT_H = 240 |
Indicates the most significant byte of the source port number that EtherDune will use by default when making outgoing connections. More... | |
static const uint16_t | TCP_MAXIMUM_SEGMENT_SIZE = 512 |
Maximum size of payload accepted by the library. More... | |
static const uint8_t | MAX_TCP_CONNECT_RETRIES = 50 |
how many SYN packets to send before giving up. More... | |
static const uint8_t | ARP_TABLE_LENGTH = 2 |
Maximum number of entries in the ARP table. More... | |
static const int16_t | MAX_ARP_TTL = 20 |
Time the ARP entry is considered fresh, in minutes. More... | |
static const char | DHCP_HOSTNAME [] = "ARDUINO" |
host name sent to DHCP server. More... | |
static const uint8_t | DHCP_MAX_ATTEMPTS = 4 |
how many times to retry if address request is denied. More... | |
static const uint16_t | DHCP_DEFAULT_RENEWAL_TIMER_S = 7200 |
Time in seconds to hold the IP lease, unless stated otherwise by the DHCP server. More... | |
static const uint8_t | ICMP_PING_DATA_LENGTH = 32 |
size of data to send as part of an echo request More... | |