Private methods

This page documents the internal methods for XPA.jl developers. Since these are not part of the public API, the page is hidden from the site navigation.

Warning

The functions documented here are internal to XPA.jl and should not be considered as being part of the stable/public API.

Types

XPA.ReceiveBufferType

An instance of the XPA.ReceiveBuffer structure is provided to receive callbacks to record the address and the size of the data sent by an XPA.set request. Methods pointer(buf) and sizeof(buf) can be used to query the address and the number of bytes of the buffer buf.

See also

XPA.get, XPA.Server, and XPA.ReceiveCallback.

source
XPA.NullBufferType
XPA.NullBuffer

singleton type representing an empty buffer when sending data to a server. Its length is 0 byte and its address is Ptr{Cvoid}(0).

source
XPA.TupleOfType

XPA.TupleOf{T} represents a tuple of any number of elements of type T, it is an alias for Tuple{Vararg{T}}

source

XPA.CDefs module

XPA.CDefsModule

Module XPA.CDefs provides Julia equivalents to constants and structures defined in C header xpa.h. These private definitions are put in a sub-module to make them not directly accessible.

source
XPA.CDefs.SelOnType
abstract type SelOn

Wrapper around XPA's SelOn type:

typedef void (*SelOn)(void *client_data);
source
XPA.CDefs.SelOffType
abstract type SelOff

Wrapper around XPA's SelOff type:

typedef void (*SelOff)(void *client_data);
source
XPA.CDefs.SelAddType
abstract type SelAdd

Wrapper around XPA's SelAdd type:

typedef void *(*SelAdd)(void *client_data, int fd);
source
XPA.CDefs.SelDelType
abstract type SelDel

Wrapper around XPA's SelDel type:

typedef void (*SelDel)(void *client_data);
source
XPA.CDefs.SendCbType
SendCb

Wrapper around XPA's SendCb type:

typedef int (*SendCb)(void *client_data, void *call_data, char *paramlist,
                      char **buf, size_t *len);
source
XPA.CDefs.ReceiveCbType
ReceiveCb

Wrapper around XPA's ReceiveCb type:

typedef int (*ReceiveCb)(void *client_data, void *call_data,
                         char *paramlist, char *buf, size_t len);
source
XPA.CDefs.InfoCbType
InfoCb

Wrapper around XPA's InfoCb type:

typedef int (*InfoCb)(void *client_data, void *call_data, char *paramlist);
source