mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
very basic input to event working...
This commit is contained in:
parent
d7a3b85fcd
commit
5b0c307f87
5 changed files with 42 additions and 8 deletions
|
@ -5,6 +5,8 @@
|
|||
|
||||
InputReader::InputReader()
|
||||
{
|
||||
buf = 0;
|
||||
buf_len = 1024;
|
||||
disabled = true; // disabled will be set correcty in init.
|
||||
}
|
||||
|
||||
|
@ -18,6 +20,11 @@ void InputReader::Error(const char *msg)
|
|||
input_mgr->Error(this, msg);
|
||||
}
|
||||
|
||||
void InputReader::Error(const string &msg)
|
||||
{
|
||||
input_mgr->Error(this, msg.c_str());
|
||||
}
|
||||
|
||||
bool InputReader::Init(string arg_source, int arg_num_fields,
|
||||
const LogField* const * arg_fields)
|
||||
{
|
||||
|
@ -38,6 +45,10 @@ bool InputReader::Update() {
|
|||
return DoUpdate();
|
||||
}
|
||||
|
||||
void InputReader::SendEvent(const string& name, const int num_vals, const LogVal* const *vals) {
|
||||
input_mgr->SendEvent(name, num_vals, vals);
|
||||
}
|
||||
|
||||
// stolen from logwriter
|
||||
const char* InputReader::Fmt(const char* format, ...)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue