KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
contun.h File Reference

This modules provides console tunneling, for both PTP core and 2nd LM32. More...

#include "net/msg.h"

Go to the source code of this file.

Functions

bool conTunInit (SockAddr *addr)
 Initializes the console tunnel. More...
 
static void conTunDeinit ()
 Deinitializes the console tunnel.
 
void conTunSend (char *ptp, char *secLm32)
 Send characters to PTP core and second LM32. More...
 
void conTunRecv (char *ptp, char *secLm32, int max)
 Receive characters from PTP core and second LM32. More...
 

Detailed Description

This modules provides console tunneling, for both PTP core and 2nd LM32.

Definition in file contun.h.

Function Documentation

bool conTunInit ( SockAddr addr)

Initializes the console tunnel.

Parameters
addrThe socket address to forward the console data to.
Note
Provide NULL to conTunInit to deinitialize,or call conTunDeinit.

Definition at line 81 of file contun.c.

void conTunRecv ( char *  ptp,
char *  secLm32,
int  max 
)

Receive characters from PTP core and second LM32.

Parameters
ptpString for receiving PTP core console data in
lm32String for receiving 2ndLM32 console date in
maxMaximum length for each string
Note
Both string may be empty to send nothing.
void conTunSend ( char *  ptp,
char *  secLm32 
)

Send characters to PTP core and second LM32.

Parameters
ptpString for the PTP core
lm32String for the second LM32.
Note
Both string may be empty to send nothing.

Definition at line 109 of file contun.c.