4#define NETBIOS_NAME_LENGTH 16
5#define NETBIOS_UNIQUE_NAME 0
6#define NETBIOS_GROUP_NAME 1
7#define NETBIOS_TYPE_QUICK_UNIQUE 2
8#define NETBIOS_TYPE_QUICK_GROUP 3
16#define SET_NETBIOS_SOCKADDR(_snb,_type,_name,_port) \
19 register char *_n = (_name); \
20 register PSOCKADDR_NB _s = (_snb); \
21 _s->snb_family = AF_NETBIOS; \
22 _s->snb_type = (_type); \
23 for (_i=0; _n[_i] != '\0' && _i<NETBIOS_NAME_LENGTH-1; _i++) { \
24 _s->snb_name[_i] = _n[_i]; \
26 for (; _i<NETBIOS_NAME_LENGTH-1; _i++) { \
27 _s->snb_name[_i] = ' '; \
29 _s->snb_name[NETBIOS_NAME_LENGTH-1] = (_port); \
char snb_name[NETBIOS_NAME_LENGTH]
struct sockaddr_nb SOCKADDR_NB
struct sockaddr_nb * PSOCKADDR_NB
#define NETBIOS_NAME_LENGTH
struct sockaddr_nb * LPSOCKADDR_NB