Previous PageNext Page

Chapter 11 - Interprocess Communications for Windows Workstations

API Support on Windows and Windows for Workgroups Workstations

Run PCNETB and SETNETB before running Windows. This lets you configure your workstation so all Netbios applications use a single Netbios naming service. There are three restrictions to this procedure:

- The total number of Netbios sessions is limited to the number of sessions specified by the /SES switch in PCNETB, or by the Login Environment Setting in PCCONFIG. If you run multiple applications, they share all Netbios resources, including total sessions, total Netbios names, and the permanent node ID and machine name added by SETNETB.

- If you close an application window while there are outstanding Netbios requests, a DOS communications error message appears.

- Netbios software is loaded into every window open on the workstation. For windows not running Netbios applications, this procedure wastes memory.

Add the PCNETB and SETNETB commands to a WINSTART.BAT file you create. This file only lets you run Windows Netbios applications. You cannot run DOS Netbios applications. In addition, you cannot place PCNETB and SETNETB commands in a WINSTART.BAT file when you run WFWG.
Run PCNETB and SETNETB from a DOS window. This lets you run DOS Netbios applications from your workstation. Each window that runs a DOS Netbios application uses a unique instance of PCNETB and may use a unique Netbios naming service. This method also provides support for Netbios under Windows for Workgroups. Once you exit Windows, however, the connection is broken.

To Run Netbios Commands Before Starting Windows

1. Use PCCONFIG to configure the workstation for Netbios support according to instructions in Chapter 7.

2. At a DOS prompt, enter ban to log in to the network.

3. Run SETNETB and specify the service name.

4. If you configured SETNETB in your VINES user profile, proceed to step 5. To run SETNETB manually, enter SETNETB on the DOS command line, according to instructions in Chapter 7.

5. Run Windows.

6. Run Netbios or Named Pipes applications.

If you run multiple applications, they share all Netbios resources, including:

- Total sessions

- Total Netbios names

- Permanent node ID and machine name added by SETNETB

If you add a Netbios name from within a window, the name applies to any other windows you open subsequently.

If an application adds a Netbios name and then quits, the name is still registered to that machine. Another application attempting to add the same unique Netbios name gets an error.

To clear the Netbios name, either:

- Run another application to delete the name

- Run SETNETB again

- Reboot the system

If you close an application's window while there are outstanding Netbios requests, a DOS prompt communications error message appears.
Multiple applications that try to use the same Netbios name may experience anomalous behavior. For example, if two applications running in different windows issue a LISTEN for the same Netbios name, only one is satisfied by an incoming CALL for that name, as if the two LISTENs were issued from the same window.

To Run Netbios Commands After Starting Windows

1. Make sure Netbios or Named Pipe support is disabled in PCCONFIG.

2. Log in to the network.

3. Run Windows.

4. Open a DOS window through the DOS Prompt icon.

5. Run PCNETB if you run a Netbios application or INNS.EXE if you run a Named Pipe application.

6. Run SETNETB and specify the service name.

7. Run the Netbios or Named Pipe application.

Note: You can run only one DOS Named Pipes application in this procedure.

To Create Batch Files to Run Windows Netbios Applications

ban /nc
rem Enter your LAN card driver.
3c503ban.com
rem For DOS 4.x, use redirnp4.
rem BAN would normally load redirx.
redirnp4
rem BAN loads PCNETB or INNS at this point.
z:login
win

PCNETB
rem or enter INNS.EXE
SETNETB /name:windownp1 nbservice@sales@wctus

To Run Windows Netbios or Named Pipe Applications Using a Batch File

1. Log in to the network using the BANSTART.BAT file rather than the AUTOEXEC.BAT file.

2. Make sure the WINSTART.BAT file described in the previous section, "To Create Batch Files to Run Windows Netbios Applications," is included in the same directory as the WIN.EXE file.

3. Start Windows.

4. Run your Windows Netbios or Named Pipe application.

API Support Under Windows and Windows for Workgroups

To Run Netbios Applications from an MS-DOS Window

1. Boot the workstation and run either Windows or Windows for Workgroups.

2. Double-click the MS-DOS Prompt icon in the Main group. An MS-DOS window appears on the screen.

3. Press ALT-ENTER to display the MS-DOS window.

4. Choose Settings from the control menu. The MS-DOS Prompt dialog box, Figure 11-1, appears.

Figure 11-1. MS-DOS Prompt Dialog Box Screen

5. Under Tasking Options, click on Background. An X appears in the box.

6. Click OK. You return to the MS-DOS window.

7. Run PCNETB and SETNETB using the command formats as specified in Chapter 7.

8. Run your DOS Netbios/Named Pipe application.

Using Banyan DOS Netbios with WFWG

Banyan DOS Netbios must be loaded before WFWG starts if you use it for sharing.
The default parameters for PCNETB may not be sufficient. If you receive error messages or notice poor performance, use the following settings for the /nam, /ses, and /cmd settings:

/nam:32
/ses:16

/cmd:32

Depending on how you use the workstation, you may receive a message that NETHEAP needs to be increased. This message gives you instructions and suggests a new value for the NETHEAP setting.
Banyan DOS Netbios works only with the Netbios in VINES version 5.52 (5) or higher.

Enabling Network File Sharing Under WFWG

Sharing resources over Banyan Netbios (applications and peer-to-peer file sharing)
Restricting Banyan Netbios to applications

Sharing Resources in a Workgroup over Netbios

To Make Sure Users Sharing Resources Belong to the Same Workgroup

1. At each user's workstation, double-click the Network icon in the Control Panel. The Microsoft Windows Network dialog box appears.

2. Make sure the Workgroup text box displays the correct workgroup name.

3. Choose the OK button.

Configuring WFWG to Restrict Netbios to Applications

Setting the default protocol
Editing the PROTOCOL.INI file
Editing the SYSTEM.INI file

To Set the Default Protocol for a WFWG Workstation

1. Double-click the Network Setup icon in the Network program group. The Network Setup dialog box appears.

2. Choose the Drivers button. The Network Drivers dialog box appears.

3. Select Banyan VINES.

4. Choose Set as Default Protocol. This sets VINES as the default protocol.

5. Choose the Close button. The Network Setup dialog box appears.

6. Choose the OK button.

To Edit the PROTOCOL.INI File for a WFWG Workstation

1. Open the PROTOCOL.INI file using a text editor.

2. Locate the [Network.Setup] section.

3. Increase all LANA settings in the network.setup section by one. For example, change LANA0 to LANA1. Do not leave any settings at LANA0.

4. Locate the [NETBEUI] section.

5. Change the LANABASE entry to match the LANA for ms$netbeui (usually 1) from the network.setup section. If there is no LANABASE entry, add the line (or the correct number for your setup):

LANABASE=1

6. Save and close the PROTOCOL.INI file.

To Edit the SYSTEM.INI File for a WFWG Workstation

1. Open the SYSTEM.INI file using a text editor.

2. Locate the [Network] section.

3. Add the following line to prevent WFWG from using LANA 0:

Exclude=0

Named Pipe Software for Windows or WFWG Workstations

Table 11-1. Named Pipe Software Support

Figure 11-2. Named Pipe Communications for a Windows or Windows for Workgroups Workstation

Optimizing Performance

To Optimize Network Software Performance

1. Double-click on the Windows Setup icon in the Main group window.

2. Choose Change Network Settings from the Options menu. The Network Settings dialog box appears.

3. Click on the Drivers button. The Network Drivers dialog box appears.

4. Select Banyan VINES protocol and click on the Set As Default Protocol button.

5. Click on the Close button. The Network Settings dialog box appears.

6. Click on the OK button. A dialog box appears, notifying you that system files have changed.

7. Click on the OK button. A dialog box appears, notifying you that you have to restart your workstation for your changes to take effect.

8. Restart your workstation.

Previous PageTop Of PageNext Page