Barrelfish
Data Structures | Functions
bulk_net.h File Reference

Unidirectional bulk data transfer via shared memory. More...

Data Structures

struct  bulk_net_endpoint_descriptor
 
struct  bulk_net_ep_setup
 

Functions

errval_t bulk_net_ep_create (struct bulk_net_endpoint_descriptor *ep_desc, struct bulk_net_ep_setup *setup)
 
errval_t bulk_net_ep_destroy (struct bulk_net_endpoint_descriptor *ep_desc)
 
errval_t bulk_net_ep_create_remote (struct bulk_net_endpoint_descriptor *ep_desc, struct bulk_net_ep_setup *setup)
 

Detailed Description

Unidirectional bulk data transfer via shared memory.

Function Documentation

errval_t bulk_net_ep_create ( struct bulk_net_endpoint_descriptor ep_desc,
struct bulk_net_ep_setup setup 
)

Creates a new bulk endpoint which uses the network backend

Parameters
ep_descmemory location to create the endpoint in
setupthe setup parameters for the endpoint

This function is intended to be used by the creator.

errval_t bulk_net_ep_create_remote ( struct bulk_net_endpoint_descriptor ep_desc,
struct bulk_net_ep_setup setup 
)

Explicitly creates a specific remote endpoint

Parameters
ep_descmemory location to create the endpoint
ipthe ip of the server machine
portthe port where the otherside listens to

Explicitly creates a specific remote endpoint

Parameters
ep_descmemory location to create the endpoint
ipthe ip of the server machine
portthe port where the otherside listens to

This is used to explicitly specify an endpoint to connect to. In the end, a nameservice like lookup should return the correct endpoint descriptor.

errval_t bulk_net_ep_destroy ( struct bulk_net_endpoint_descriptor ep_desc)

Destroys the given endpoint

Parameters
ep_descthe endpoint to be destroyed