libmct_convProgrammer’s Manual

mct_conv(3)

Name

mct_conv — MCT Convenience API

Synopsis

#include <mct/convenience.h>

struct mct;

Link with -lmct -lmct_conv.

Description

The MCT Convenience interfaces provide wrappers for calling the MCT API proper. These are made available as an ancillary library.

Functions

<mct/convenience.h>:

mct_bridge_name()

Create a session.

mct_session_add_name()

Add a multicast group to a session.

mct_session_drop_name()

Drop a multicast group from a session.

mct_session_affinity_name()

Set multicast affinity for a session.

Rationalle

The interfaces provided here offer no functionality over standard POSIX functions used in conjunction with the mct API proper. These are made available solely for ease of integration. In particular to provide a simple interface for which FFI calls may be made from languages other than C. Therefore interfaces which require machine-specific representations (i.e. the POSIX standard sockaddr struct) are avoided, and only standard C types are required instead.

This is intentionally kept separate to the mct API in order to make this type isolation clear.

Future Directions

These interfaces may be added to or removed as per use case requirements. Ideally they need not exist, and FFI calls would provide native support for POSIX standard types alongside standard C types. As such this library may be removed as support permits.

See Also

mct, getaddrinfo.

History

libmct_conv was designed and implemented by Katherine Flavel for Bubblephone Ltd.

Initial development of MCT was funded by 2iC Ltd.