|
Data Structures |
struct | fragment_s |
Typedefs |
typedef fragment_s | fragment_t |
Functions |
void | udp_transceiver_timer (time_t now) |
gboolean | udp_transceiver_can_handle_received_fragment (char *buf, int length) |
| Wether the udp transceiver might be able to handle this received fragment.
|
void | udp_transceiver_put_send_fragment (fragment_t *fragment) |
| Put fragment in the to send list.
|
void | udp_transceiver_send_fragment (fragment_t *fragment, gboolean deflate, gboolean acknowledge) |
| Send the fragment.
|
void | udp_transceiver_free_fragment (fragment_t *fragment) |
| Free the fragment and all its associated memory.
|
fragment_t * | udp_transceiver_build_fragment (char *buffer, int length, int sequencenumber, int partnumber, int fragments, gboolean deflate, gboolean acknowledge) |
| Build a fragment.
|
void | udp_transceiver_send (char *buffer, int length, gboolean deflate, gboolean acknowledge, guint32 address, guint16 port) |
| Send a fragment to the specified address.
|
int | udp_transceiver_get_sequencenumber (fragment_t *fragment) |
| Get the sequence number from a fragment.
|
int | udp_transceiver_get_partnumber (fragment_t *fragment) |
| Get the part number from a fragment.
|
int | udp_transceiver_get_fragments (fragment_t *fragment) |
| Get the number of fragments from a datagram fragment.
|
GSList * | udp_transceiver_lookup_fragments_by_sequencenumber_source (fragment_t *fragment) |
| Gets previously received fragments from the given source with matching sequencenumber.
|
void | udp_transceiver_put_received_fragment (fragment_t *fragment) |
| Puts a received datagram fragment in a to handle list.
|
gboolean | udp_transceiver_put_received_datagram (char *buf, int length, guint32 ip, guint16 port) |
| Parses a datagram and if it is a fragment it will be handed over to udp_transceiver_put_received_fragment.
|
gboolean | udp_transceiver_receive (char **buffer, int *length) |
| Handle receiving of data.
|
Variables |
int | sequencenumber = 0 |
int | header_length = 8 |
int | MTU = 1500 |
int | transmit_retransmit_interval = 10 |
| seconds
|
int | transmit_packet_timeout = 26 |
| seconds
|
int | receive_packet_expiry = 30 |
| seconds
|
GSList * | receiving_fragments_list |
GSList * | received_fragments_list |