⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idmef-time.sgml

📁 看看哈
💻 SGML
字号:
<!-- ##### SECTION Title ##### -->idmef-time<!-- ##### SECTION Short_Description ##### -->Time representation in IDMEF message<!-- ##### SECTION Long_Description ##### --><para>The #idmef_time_t type is used in order to represent a time value in an IDMEF message. This object contain information such as the number of seconds since the Epoch, the local GMT offset, the number of micro second (if applicable).</para><para>When creating an IDMEF message, you need to insert a timestamp in it.IDMEF provide differents time field to be used for this:<itemizedlist> <listitem>AnalyzerTime<para>The AnalyzerTime class is used to indicate the current date and time   on the analyzer. Its values should be filled in as late as possible in the message transmission    process, ideally immediately before placing the message "on the wire."</para></listitem> <listitem>CreateTime<para>The CreateTime class is used to indicate the date and time the alert   or heartbeat was created by the analyzer.</para></listitem> <listitem>DetectTime<para>The DetectTime class is used to indicate the date and time the   event(s) producing an alert was detected by the analyzer. In the case of more than one event,    the time the first event was detected. (This may or may not be the same time as CreateTime;    analyzers are not required to send alerts immediately upon detection).</para></listitem></itemizedlist>You don't need to take care of the AnalyzerTime field, since in Prelude, once an eventsis handed to the library, and if the sending of the message fail, there will be a fallbackto backuping the event for later retransmission. Thus the library has to take care of setting the AnalyzerTime for you (since the message mightnot be emited immediatly in this specific case.</para><para>Several helper are available in order to create #idmef_time_t object. Most probably, the functionthat you will need are the one bellow:<itemizedlist> <listitem>idmef_time_new_from_gettimeofday() and idmef_time_set_from_gettimeofday()</listitem> <listitem>idmef_time_new_from_timeval() and idmef_time_set_from_timeval()</listitem> <listitem>idmef_time_new_from_time() and idmef_time_set_from_time()</listitem> <listitem>idmef_time_new_from_string() and idmef_time_set_from_string()</listitem></itemizedlist></para><!-- ##### SECTION See_Also ##### --><para></para><!-- ##### SECTION Stability_Level ##### --><!-- ##### STRUCT idmef_time ##### --><para></para><!-- ##### TYPEDEF idmef_time_t ##### --><para></para><!-- ##### FUNCTION idmef_time_ref ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_new ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_new_from_time ##### --><para></para>@time: @t: @Returns: <!-- ##### FUNCTION idmef_time_new_from_gettimeofday ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_new_from_string ##### --><para></para>@time: @buf: @Returns: <!-- ##### FUNCTION idmef_time_new_from_ntpstamp ##### --><para></para>@time: @buf: @Returns: <!-- ##### FUNCTION idmef_time_new_from_timeval ##### --><para></para>@time: @tv: @Returns: <!-- ##### FUNCTION idmef_time_set_from_time ##### --><para></para>@time: @t: <!-- ##### FUNCTION idmef_time_set_from_gettimeofday ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_set_from_string ##### --><para></para>@time: @buf: @Returns: <!-- ##### FUNCTION idmef_time_set_from_ntpstamp ##### --><para></para>@time: @buf: @Returns: <!-- ##### FUNCTION idmef_time_set_from_timeval ##### --><para></para>@time: @tv: @Returns: <!-- ##### FUNCTION idmef_time_destroy_internal ##### --><para></para>@time: <!-- ##### FUNCTION idmef_time_destroy ##### --><para></para>@time: <!-- ##### FUNCTION idmef_time_clone ##### --><para></para>@src: @dst: @Returns: <!-- ##### FUNCTION idmef_time_copy ##### --><para></para>@src: @dst: @Returns: <!-- ##### FUNCTION idmef_time_set_sec ##### --><para></para>@time: @sec: <!-- ##### FUNCTION idmef_time_set_usec ##### --><para></para>@time: @usec: <!-- ##### FUNCTION idmef_time_set_gmt_offset ##### --><para></para>@time: @gmtoff: <!-- ##### FUNCTION idmef_time_get_sec ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_get_usec ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_get_gmt_offset ##### --><para></para>@time: @Returns: <!-- ##### FUNCTION idmef_time_to_string ##### --><para></para>@time: @out: @Returns: <!-- ##### FUNCTION idmef_time_to_ntpstamp ##### --><para></para>@time: @out: @Returns: 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -