|
|
When the Service Advertising Protocol daemon (SAPD) is initialized by the NetWare Protocol Stack Daemon (NPSD), SAPD binds to the IPX socket 0x0452, and sends a request for all SAP agents to send their server information. SAPD then builds a Server Information table from the returned packets.
Some of the more pertinent fields in the Server Information table of the SAP Agent are:
The network number is the number associated with the cabling system the server is attached to. For SCO IPX/SPX file servers or application servers loaded on such file servers, the network number is the file server's internal network number.
The node number is the station number of the network board installed in the server. For SCO IPX/SPX file servers, this number is always set to 0x000000000001. The SCO IPX/SPX server is the only node on the network (the network is the server's internal network number).
The socket number is the number of the socket that the server binds to when it is initialized and is ready to provide service by listening on this socket.
If no server information is received within the three minutes for a particular server, the SAP agent presumes that the server is down and removes the server from the table. SAPD then broadcasts a SAP packet to indicate that the server is down.
SAPD handles the ``Time since change'' field in a slightly different way from other NetWare SAP agents. SAPD's timeout interval for the ``Time since change'' field is tunable in a header file. The current default is four minutes.
Every minute, SAPD sends local broadcasts of all its server information. When a new server sends out a SAP packet saying that it is available, SAPD verifies that this server is not in its Server Information table. SAPD then adds this server to its Server Information table and echoes this information to all connected networks.
When a SCO IPX/SPX server is initialized, the server sends a special SAP packet to SAPD. This special SAP packet tells SAPD which socket to use to inform the SCO IPX/SPX server about new server information.