WINS
[User Protocols]

Collaboration diagram for WINS:
Netbios WINS Name Query (RFC 1002). More...

Functions

int NutWinsNameQuery (char *name, uint32_t ipaddr)

Detailed Description

Netbios WINS Name Query (RFC 1002).

Only Query Request Client Routine sending/Positive Name Query Response receiving are implemented.

When the Netbios Name Query request UDP datagram is on the ethernet network, asking "Who is 'name'?", NutWinsNameQuery() answers with the specified 'ipaddr' Ethernut IP address.

Answer to Microsoft Windows/Internet Explorer calls by "http://name" command line (and even directly "name" as command line if "name" is not a shared folder).

Launch for example :

 THREAD(wins_deamon, arg)
 {
     NutWinsNameQuery("myboard", inet_addr(MYIP));
 } 

Function Documentation

int NutWinsNameQuery ( char *  name,
uint32_t  ipaddr 
)

Definition at line 93 of file wins.c.

References calloc, free, htonl, htons, memset(), ntohs, NutUdpCreateSocket(), NutUdpReceiveFrom(), NutUdpSendTo(), strcmp(), strlen(), and toupper().


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