Go to the source code of this file.
#define transport_proto_foreach |
( |
|
VAR, |
|
|
|
BODY |
|
) |
| |
Value: if (
tp_vfts[VAR].push_header != 0) \
do { BODY; } while (0); \
} while (0)
for(i=1;i<=collision_buckets;i++)
transport_proto_vft_t * tp_vfts
Per-type vector of transport protocol virtual function tables.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
Definition at line 89 of file transport_interface.h.
Enumerator |
---|
TRANSPORT_TX_PEEK |
reliable transport protos
|
TRANSPORT_TX_DEQUEUE |
unreliable transport protos
|
TRANSPORT_TX_INTERNAL |
apps acting as transports
|
TRANSPORT_TX_DGRAM |
datagram mode
|
TRANSPORT_TX_N_FNS |
|
Definition at line 22 of file transport_interface.h.
Enumerator |
---|
TRANSPORT_SERVICE_VC |
virtual circuit service
|
TRANSPORT_SERVICE_CL |
connectionless service
|
TRANSPORT_SERVICE_APP |
app transport service
|
TRANSPORT_N_SERVICES |
|
Definition at line 31 of file transport_interface.h.
Get transport virtual function table.
- Parameters
-
type | - session type (not protocol type) |
Definition at line 191 of file transport.c.
Register transport virtual function table.
- Parameters
-
transport_proto | - transport protocol type (i.e., TCP, UDP ..) |
vft | - virtual function table for transport proto |
fib_proto | - network layer protocol |
output_node | - output node index that session layer will hand off buffers to, for requested fib proto |
Definition at line 173 of file transport.c.
void transport_update_time |
( |
f64 |
time_now, |
|
|
u8 |
thread_index |
|
) |
| |
Per-type vector of transport protocol virtual function tables.
Generate typed init functions for multiple hash table styles...
Definition at line 23 of file transport.c.