Sending NetBIOS broadcast datagrams
To enable receipt of broadcast datagrams on a transport
endpoint:
-
In the call to t_open,
open the transport endpoint using the device name of a
connectionless NetBIOS transport provider
as the name parameter.
-
for SCO TCP/NetBIOS,
use /dev/nbclts
-
for NetBEUI, use /dev/netbeuid
-
In the call to t_bind,
specify the NetBIOS name NB_BCAST_NAME
and a queue length of zero.
(NB_BCAST_NAME is defined in xti.h.)
You must use a connectionless NetBIOS provider
to send broadcast datagrams.
If you call t_bind for a
connection-oriented transport provider, the function
returns -1 and t_errno is set to TBADADDR.
Next topic:
Creating NetBIOS sessions
Previous topic:
NetBIOS names and addresses
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003