Make nwatch independent of SICS
This commit is contained in:
4
nwatch.c
4
nwatch.c
@ -18,7 +18,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "fortify.h"
|
#include "fortify.h"
|
||||||
#include "nwatch.h"
|
#include "nwatch.h"
|
||||||
#include "sics.h"
|
|
||||||
#include "uselect.h"
|
#include "uselect.h"
|
||||||
|
|
||||||
#define NWMAGIC 51966
|
#define NWMAGIC 51966
|
||||||
@ -363,7 +362,8 @@ int NetWatchSetMode(pNWContext handle, int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief the registered SICS Task to drive all this
|
* \brief the task to drive all this
|
||||||
|
* Should be called periodically
|
||||||
*/
|
*/
|
||||||
int NetWatchTask(void *pData)
|
int NetWatchTask(void *pData)
|
||||||
{
|
{
|
||||||
|
8
nwatch.h
8
nwatch.h
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* N E T W A T C H E R
|
* N E T W A T C H
|
||||||
*
|
*
|
||||||
* This module watches network connections for sockets becoming readable or
|
* This module watches network connections for sockets becoming readable or
|
||||||
* writeable and invokes callbacks. It also provides a timer mechanism.
|
* writeable and invokes callbacks. It also provides a timer mechanism.
|
||||||
@ -7,8 +7,8 @@
|
|||||||
* Douglas Clowes, February 2007
|
* Douglas Clowes, February 2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifndef SICSNETWATCHER
|
#ifndef NETWATCH_H
|
||||||
#define SICSNETWATCHER
|
#define NETWATCH_H
|
||||||
|
|
||||||
#define nwatch_read 1
|
#define nwatch_read 1
|
||||||
#define nwatch_write 2
|
#define nwatch_write 2
|
||||||
@ -107,4 +107,4 @@ int NetWatchGetMode(pNWContext handle);
|
|||||||
*/
|
*/
|
||||||
int NetWatchSetMode(pNWContext handle, int mode);
|
int NetWatchSetMode(pNWContext handle, int mode);
|
||||||
|
|
||||||
#endif /* SICSNETWATCHER */
|
#endif /* NETWATCH_H */
|
||||||
|
Reference in New Issue
Block a user