libnd_protocol

Name

libnd_protocol -- 

Synopsis

#define             LND_PROTO_MAGICS
enum                LND_ProtocolLayer;
LND_Protocol *      libnd_proto_new                     (const char *name,
                                                         LND_ProtocolLayer layer,
                                                         guint32 magic);
void                libnd_proto_free                    (LND_Protocol *proto);
gboolean            libnd_proto_is_raw                  (LND_Protocol *proto);
const char *        libnd_proto_layer_to_string         (LND_ProtocolLayer layer);

Description

Details

LND_PROTO_MAGICS

#define LND_PROTO_MAGICS 3


enum LND_ProtocolLayer

typedef enum {
  LND_PROTO_LAYER_LINK  = (1 << 0),
  LND_PROTO_LAYER_NET   = (1 << 1),
  LND_PROTO_LAYER_TRANS = (1 << 2),
  LND_PROTO_LAYER_APP   = (1 << 3),
} LND_ProtocolLayer;


libnd_proto_new ()

LND_Protocol *      libnd_proto_new                     (const char *name,
                                                         LND_ProtocolLayer layer,
                                                         guint32 magic);


libnd_proto_free ()

void                libnd_proto_free                    (LND_Protocol *proto);


libnd_proto_is_raw ()

gboolean            libnd_proto_is_raw                  (LND_Protocol *proto);


libnd_proto_layer_to_string ()

const char *        libnd_proto_layer_to_string         (LND_ProtocolLayer layer);