NMB Daemon

Previous

Next

Function NmbDaemon

NmbDaemon starts the NMB server:

int NmbDaemon(NmbConfigData *pConfig);

Parameters

pConfig

A pointer do the configuration data.

typedef struct
{
char cIpAddress [32];
char cSubNetMask[32];
char cHostname [16];
char cWorkgroup [16];
char cDomain [256];
int iPriority;
}NmbConfigData;

cIpAddress is the used ip-address of the server. i.e. "192.168.1.10"
cSubNetMask is the used subnetmask of the server. i.e. "255.255.255.0"
cHostname is the used hostname of the server.
cWorkgroup is the used workgroup of the server. i.e. "WORKGROUP"
iPriority is the task priority of the server. (0 to 256) for default use PRIOTASK_NORMAL*4.

return value

Macro

Value Meaning
NMB_ERR_NONE 0 no error
NMB_ERR_SOCKET 1 socket error
NMB_ERR_ISRUNNING 2 the server allready runs
NMB_ERR_INIT 3 the server couln't be initialized
NMB_ERR_DGRAM 4 the datagram server couln't started
NMB_ERR_IPV6 5 ip V6 sockets not allowed
NMB_ERR_WRONGIP 6 the ip address is wrong
NMB_ERR_WRONGNET 7 the subnet mask is wrong

The NMB daemon is used for the netbios protocol. This protocol allows a host to get the names and ip addresses of all other netbios host's in the network, if no DNS server is present. The netbios protocol didn't supports the IP-V6.


Introduction
The SMB daemon
The NMB daemon
The CheckTree Function
The UserLogon Function
The GetPassword Function
The SmbInsertTreeEntry Function
The SmbInfo Function
OS-Independency


Copyright ゥ 2003 Anton Zechner

AltStyle によって変換されたページ (->オリジナル) /