Barrelfish
|
Proxy for connecting bulk transfer channels over a network connection. More...
Data Structures | |
struct | bulk_net_proxy |
Functions | |
errval_t | bulk_net_proxy_listen (struct bulk_net_proxy *p, struct bulk_endpoint_descriptor *desc, struct waitset *ws, size_t buffer_size, const char *card, uint8_t queue, uint16_t port, void(*connected)(struct bulk_net_proxy *)) |
errval_t | bulk_net_proxy_connect (struct bulk_net_proxy *p, struct bulk_endpoint_descriptor *desc, struct waitset *ws, size_t buffer_size, const char *card, uint8_t queue, uint32_t ip, uint16_t port, void(*connected)(struct bulk_net_proxy *)) |
Proxy for connecting bulk transfer channels over a network connection.
errval_t bulk_net_proxy_connect | ( | struct bulk_net_proxy * | p, |
struct bulk_endpoint_descriptor * | desc, | ||
struct waitset * | ws, | ||
size_t | buffer_size, | ||
const char * | card, | ||
uint8_t | queue, | ||
uint32_t | ip, | ||
uint16_t | port, | ||
void(*)(struct bulk_net_proxy *) | connected | ||
) |
Connect to listening proxy. Note that the proxy will bind to the bulk channel during the initialization phase, before actually receiving a connection request. But transfers on the channel (including the passing of buffers for the receive queue) must only be executed after the connected callback is called.
p | Proxy struct |
desc | Bulk endpoint to bind to |
ws | Waitset |
buffer_size | Size of buffers to be transmitted over this proxy |
card | NIC name in barrelfish |
queue | Queue ID to use |
ip | IP to connect to (host byte order) |
port | Port number to connect to (host byte order) |
connected | Callback, will be invoked once the connection has been established. |
errval_t bulk_net_proxy_listen | ( | struct bulk_net_proxy * | p, |
struct bulk_endpoint_descriptor * | desc, | ||
struct waitset * | ws, | ||
size_t | buffer_size, | ||
const char * | card, | ||
uint8_t | queue, | ||
uint16_t | port, | ||
void(*)(struct bulk_net_proxy *) | connected | ||
) |
Start listening proxy on the specified port. Note that the proxy will bind to the bulk channel during the initialization phase, before actually receiving a connection request. But transfers on the channel (including the passing of buffers for the receive queue) must only be executed after the connected callback is called.
p | Proxy struct |
desc | Bulk endpoint to bind to |
ws | Waitset |
buffer_size | Size of buffers to be transmitted over this proxy |
card | NIC name in barrelfish |
queue | Queue ID to use |
port | Port number to listen on (host byte order) |
connected | Callback, will be invoked once an incoming connection has been established. |