liblnp.h File Reference

Go to the source code of this file.

Defines

#define LNP_DISCARD_WHILE_TX   1

Typedefs

typedef void(* lnp_integrity_handler_t )(const unsigned char *, unsigned char)
typedef void(* lnp_addressing_handler_t )(const unsigned char *, unsigned char, unsigned char)

Enumerations

enum  lnp_init_result { INIT_OK, INIT_BAD_PARAM, INIT_ERROR }
enum  lnp_tx_result { TX_SUCCESS, TX_FAILURE, TX_ERROR }

Functions

int lnp_init_com ()
lnp_init_result lnp_init (char *tcp_hostname, unsigned short tcp_port, unsigned char lnp_address, unsigned char lnp_mask, int flags)
bool lnp_test (void)
void lnp_shutdown (void)
void lnp_integrity_set_handler (lnp_integrity_handler_t handler)
void lnp_addressing_set_handler (unsigned char port, lnp_addressing_handler_t handler)
lnp_tx_result lnp_integrity_write (const unsigned char *data, unsigned char length)
lnp_tx_result lnp_addressing_write (const unsigned char *data, unsigned char length, unsigned char dest, unsigned char srcport)
void block_rcv (void)
void unblock_rcv (void)


Define Documentation

#define LNP_DISCARD_WHILE_TX   1
 

Definition at line 27 of file liblnp.h.


Typedef Documentation

typedef void(* lnp_addressing_handler_t)(const unsigned char *, unsigned char, unsigned char)
 

Definition at line 19 of file liblnp.h.

typedef void(* lnp_integrity_handler_t)(const unsigned char *, unsigned char)
 

Definition at line 15 of file liblnp.h.


Enumeration Type Documentation

enum lnp_init_result
 

Enumerator:
INIT_OK 
INIT_BAD_PARAM 
INIT_ERROR 

Definition at line 22 of file liblnp.h.

enum lnp_tx_result
 

Enumerator:
TX_SUCCESS 
TX_FAILURE 
TX_ERROR 

Definition at line 25 of file liblnp.h.


Function Documentation

void block_rcv void   ) 
 

void lnp_addressing_set_handler unsigned char  port,
lnp_addressing_handler_t  handler
 

Definition at line 312 of file liblnp.cpp.

lnp_tx_result lnp_addressing_write const unsigned char *  data,
unsigned char  length,
unsigned char  dest,
unsigned char  srcport
 

Definition at line 274 of file liblnp.cpp.

lnp_init_result lnp_init char *  tcp_hostname,
unsigned short  tcp_port,
unsigned char  lnp_address,
unsigned char  lnp_mask,
int  flags
 

Definition at line 818 of file liblnp.cpp.

References DEFAULT_LNP_ADDR, DEFAULT_LNP_MASK, INIT_BAD_PARAM, INIT_ERROR, INIT_OK, lnp_shutdown(), lnp_test(), and LNPwaitHeader.

Referenced by init_com().

int lnp_init_com  ) 
 

void lnp_integrity_set_handler lnp_integrity_handler_t  handler  ) 
 

Definition at line 294 of file liblnp.cpp.

Referenced by init_com().

lnp_tx_result lnp_integrity_write const unsigned char *  data,
unsigned char  length
 

Definition at line 259 of file liblnp.cpp.

void lnp_shutdown void   ) 
 

Definition at line 170 of file liblnp.cpp.

References LNPwaitHeader.

Referenced by lnp_init().

bool lnp_test void   ) 
 

Definition at line 201 of file liblnp.cpp.

Referenced by lnp_init().

void unblock_rcv void   ) 
 


Generated on Wed Nov 29 01:27:43 2006 by  doxygen 1.4.6