SYSLOG_C.C
资源名称:ertos.rar [点击查看]
上传用户:sunrenlu
上传日期:2022-06-13
资源大小:1419k
文件大小:0k
源码类别:
操作系统开发
开发平台:
DOS
- /*
- * syslog_c.c - sample syslog client
- */
- #include <rtos.h>
- #include <net.h>
- #include <syslog.h>
- main(int argc, char **argv)
- {
- char *sysloghost = "129.97.50.72"; /* change this to syslog host */
- kdebug = 1;
- rt_init( 100 );
- sock_init();
- syslog( resolve(sysloghost), LOG_DAEMON, LOG_ERR, "woke up");
- }