ReactOS  0.4.14-dev-376-gaedba84
wsnetbs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sockaddr_nb
 

Macros

#define NETBIOS_NAME_LENGTH   16
 
#define NETBIOS_UNIQUE_NAME   0
 
#define NETBIOS_GROUP_NAME   1
 
#define NETBIOS_TYPE_QUICK_UNIQUE   2
 
#define NETBIOS_TYPE_QUICK_GROUP   3
 
#define SET_NETBIOS_SOCKADDR(_snb, _type, _name, _port)
 

Typedefs

typedef struct sockaddr_nb SOCKADDR_NB
 
typedef struct sockaddr_nbPSOCKADDR_NB
 
typedef struct sockaddr_nbLPSOCKADDR_NB
 

Macro Definition Documentation

◆ NETBIOS_GROUP_NAME

#define NETBIOS_GROUP_NAME   1

Definition at line 6 of file wsnetbs.h.

◆ NETBIOS_NAME_LENGTH

#define NETBIOS_NAME_LENGTH   16

Definition at line 4 of file wsnetbs.h.

◆ NETBIOS_TYPE_QUICK_GROUP

#define NETBIOS_TYPE_QUICK_GROUP   3

Definition at line 8 of file wsnetbs.h.

◆ NETBIOS_TYPE_QUICK_UNIQUE

#define NETBIOS_TYPE_QUICK_UNIQUE   2

Definition at line 7 of file wsnetbs.h.

◆ NETBIOS_UNIQUE_NAME

#define NETBIOS_UNIQUE_NAME   0

Definition at line 5 of file wsnetbs.h.

◆ SET_NETBIOS_SOCKADDR

#define SET_NETBIOS_SOCKADDR (   _snb,
  _type,
  _name,
  _port 
)
Value:
{ \
register int _i; \
register char *_n = (_name); \
register PSOCKADDR_NB _s = (_snb); \
_s->snb_type = (_type); \
for (_i=0; _n[_i] != '\0' && _i<NETBIOS_NAME_LENGTH-1; _i++) { \
_s->snb_name[_i] = _n[_i]; \
} \
for (; _i<NETBIOS_NAME_LENGTH-1; _i++) { \
_s->snb_name[_i] = ' '; \
} \
_s->snb_name[NETBIOS_NAME_LENGTH-1] = (_port); \
}
#define AF_NETBIOS
Definition: winsock.h:363
short snb_family
Definition: wsnetbs.h:12
#define NETBIOS_NAME_LENGTH
Definition: wsnetbs.h:4

Definition at line 16 of file wsnetbs.h.

Typedef Documentation

◆ LPSOCKADDR_NB

◆ PSOCKADDR_NB

◆ SOCKADDR_NB