discover.h File Reference


Detailed Description

Responds to UDP discovery broadcasts.

 *
 * $Log: discover.h,v $
 * Revision 1.2  2008/08/11 07:00:23  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 *
 * Revision 1.1  2006/09/07 09:06:17  haraldkipp
 * Discovery service added.
 *
 *
 * 

Definition in file discover.h.

Go to the source code of this file.

Data Structures

struct  _DISCOVERY_TELE

Defines

#define DISCOVERY_VERSION   0x10
#define DIST_REQUEST   0
#define DIST_ANNOUNCE   1
#define DIST_APPLY   2
#define DISF_INITAL_ANN   0x0001

Typedefs

typedef struct _DISCOVERY_TELE DISCOVERY_TELE
typedef int(* NutDiscoveryCallback )(uint32_t, uint16_t, DISCOVERY_TELE *, int)

Functions

int NutRegisterDiscovery (uint32_t ipmask, uint16_t port, u_int flags)
 Register discovery telegram responder.
NutDiscoveryCallback NutRegisterDiscoveryCallback (NutDiscoveryCallback func)
 Register a custom discovery callback handler.
int NutDiscoveryAnnTele (DISCOVERY_TELE *dist)
 Create an announcement datagram.
int NutDiscoveryAppConf (DISCOVERY_TELE *dist)
 Apply new configuration.


Define Documentation

#define DISCOVERY_VERSION   0x10

Definition at line 57 of file discover.h.

Referenced by NutDiscoveryAnnTele().

#define DIST_REQUEST   0

Definition at line 59 of file discover.h.

#define DIST_ANNOUNCE   1

Definition at line 60 of file discover.h.

Referenced by NutDiscoveryAnnTele().

#define DIST_APPLY   2

Definition at line 61 of file discover.h.

#define DISF_INITAL_ANN   0x0001

Examples:
ftpd/ftpserv.c, and httpd/httpserv.c.

Definition at line 63 of file discover.h.

Referenced by DiscoveryResponder(), and main().


Typedef Documentation

Definition at line 78 of file discover.h.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/