|
enum | LOG_LEVEL {
PACKET_TO_MODULE = 0UL
, PACKET_FROM_MODULE
, PACKET_TO_HOST
, PACKET_FROM_HOST
,
PACKET_ALLOC
, PACKET_CLONE
, PACKET_FREE
, PACKET_QUEUE
,
PACKET_DROPPED
, SYSCALL_RAISED
, SYSCALL_FINISHED
, SYSCALL_BLOCKED
,
SYSCALL_UNBLOCKED
, SYSCALL_ERROR
, APPLICATION_RETRUN
, MODULE_ERROR
,
PROTOCOL_ERROR
, PROTOCOL_WARNING
, TCP_LOG
, LEVEL_COUNT
} |
| Enumerations for log levels.
|
|
virtual UUID | sendMessage (const ModuleID to, Module::Message message, Time timeAfter) final |
| Send a Message to other Module. Every message has its own delay before it is actually sent. The System guarantees the total ordering of all delayed messages in the System. More...
|
|
virtual UUID | sendMessageSelf (Module::Message message, Time timeAfter) final |
| Send a Message to self Every message has its own delay before it is actually sent. The System guarantees the total ordering of all delayed messages in the System. More...
|
|
virtual bool | cancelMessage (UUID messageID) final |
| Cancel the raised Message. If a message is not actually sent yet, you can cancel the message. If the message is already sent, this function has no effect. More...
|
|
| NetworkLog (System &system) |
| Constructs a NetworkLog instance. More...
|
|
| NetworkLog (System &system, uint64_t level) |
| Constructs a NetworkLog instance with log level. More...
|
|
| ~NetworkLog () |
| Destructs a NetworkLog instance.
|
|
void | print_log (uint64_t level, const char *format,...) |
| Prints log with specified log level and format. NetworkLog::print_log prints logs specified in log level parameter. For example, if log level is set to TCP_LOG, it only prints TCP_LOG logs. If you want to print multiple log levels in NetworkLog, you can set log level with OR operation (i.e. SYSCALL_ERROR | MODULE_ERROR). More...
|
|
void | vprint_log (uint64_t level, const char *format, va_list args) |
| Prints log with specified log level and format. NetworkLog::print_log prints logs specified in log level parameter. For example, if log level is set to TCP_LOG, it only prints TCP_LOG logs. If you want to print multiple log levels in NetworkLog, you can set log level with OR operation (i.e. SYSCALL_ERROR | MODULE_ERROR). More...
|
|
static uint64_t | defaultLevel |
| Default log level. More...
|
|
Wire does a role of 2-ended wire. However there is a speed limit and delayed packets are queued (currently, no limitation to the queue length).