Cisco BBSM 5.1 SDK Developer Guide.
7 - Sample DLLs

Table Of Contents

Sample DLLs

Introduction

Building the Sample Components

Stopping Services Dependent on BBSM Modules

Opening the Sample Module Workspace

Building the AccessPolicyBlock Project

Building the AccessPolicyBlockASP Project

Building the AccountingPolicyNull Project

Building the PMSProtocolXiox Project

Building the TUTMDULiteSwitch Project

Restarting Services Dependent on BBSM Modules


Sample DLLs


Introduction

The Cisco BBSM SDK includes a sample implementation of each of these extensible components:

Access Policy—The SDK includes source code for the BBSM Block access policy in c:\BBSM_SDK\AccessPolicyBlock\ and c:\BBSM_SDK\AccessPolicyBlockASP\. See "Creating Access Policy Modules."

Accounting Policy—The SDK includes source code for the BBSM Null accounting policy in c:\BBSM_SDK\AccountingPolicyNull\. See "Creating Accounting Policy Modules."

PMS Protocol Module—The SDK includes source code for the BBSM XIOX PMS protocol component in c:\BBSM_SDK\Athdmn\PMSProtocolXiox\. See "Creating PMS Protocol Modules."

Network Element—The SDK includes source code for the Tut Systems Expresso MDU Lite network element module in c:\BBSM_SDK\TUTMDULiteSwitch\. See "Creating Network Element Modules."

The SDK provides a Visual C++ workspace that incorporates all the sample projects, c:\BBSM_SDK\SDK.dsw. Use this workspace to build the sample components. The following section describes how to load the SDK workspace into Visual C++ and build the sample DLLs.

Building the Sample Components

The following are the steps for building the sample components:

Stop the services that depend on BBSM modules.

Open the sample module workspace.

Build the AccessPolicyBlock project.

Build the AccessPolicyBlockASP project.

Build the AccountingPolicyNull project.

Build the PMSProtocolXiox project.

Build the TUTMDULiteSwitch project.

Restart the services that depend on BBSM modules.

The following sections describe these steps in detail.

Stopping Services Dependent on BBSM Modules

Follow these steps to stop services that depend on BBSM modules.


Note You may not be able to build the sample projects if these services are running.



Step 1 Open the Services application from Start > Programs > Administrative Tools > Services.

Step 2 Right-click AtDial.

Step 3 Click Stop from the popup menu.

Step 4 Wait for AtDial service to stop.

Step 5 Right-click IIS Admin Service.

Step 6 Click Stop from the popup menu.

Step 7 Click Yes.

Step 8 Wait for IIS services to stop.

Step 9 Close the Services application.


Opening the Sample Module Workspace

Follow these steps to open the BBSM SDK sample module workspace.


Step 1 Open Visual C++.

Step 2 From the menu, choose File > Open Workspace.

Step 3 Browse to c:BBSM_SDK.

Step 4 Select SDK.dsw.

Step 5 Click Open.

You have now loaded the BBSM SDK workspace into Visual C++.


Building the AccessPolicyBlock Project

Follow these steps to build the AccessPolicyBlock project.


Step 1 From the menu, choose Build > Set Active Configuration.

Step 2 Click AccessPolicyBlock - Win32 Pseudo-Debug in the Set Active Project Configuration pane.

Step 3 Click OK.

Step 4 Choose Build > Build AccessPolicyBlock.dll.


Building the AccessPolicyBlockASP Project

Follow these steps to build the AccessPolicyBlockASP project.


Step 1 From the menu, choose Build > Set Active Configuration.

Step 2 Click AccessPolicyBlockASP - Win32 Pseudo-Debug in the Set Active Project Configuration pane.

Step 3 Click OK.

Step 4 Choose Build > Build AccessPolicyBlockASP.dll.


Building the AccountingPolicyNull Project

Follow these steps to build the AccountingPolicyNull project.


Step 1 From the menu, choose Build > Set Active Configuration.

Step 2 Click AccountingPolicyNull - Win32 Pseudo-Debug in the Set Active Project Configuration pane.

Step 3 Click OK.

Step 4 Choose Build > Build AccountingPolicyNull.dll.


Building the PMSProtocolXiox Project

Follow these steps to build the PMSProtocolXiox project.


Step 1 From the menu, choose Build > Set Active Configuration.

Step 2 Click PMSProtocolXiox - Win32 Pseudo-Debug in the Set Active Project Configuration pane.

Step 3 Click OK.

Step 4 Choose Build > Build PMSProtocolXiox.dll.


Building the TUTMDULiteSwitch Project

Follow these steps to build the TUTMDULiteSwitch project.


Step 1 From the menu, choose Build > Set Active Configuration.

Step 2 Click TUTMDULiteSwitch - Win32 Pseudo-Debug in the Set Active Project Configuration pane.

Step 3 Click OK.

Step 4 Choose Build > Build TUTMDULiteSwitch.dll.


Restarting Services Dependent on BBSM Modules

Follow these steps to restart services that depend on BBSM modules.


Step 1 Open the Services application from Start > Programs > Administrative Tools > Services.

Step 2 Right-click AtDial.

Step 3 Click Start from the popup menu.

Step 4 Wait for AtDial to start.

Step 5 Right-click World Wide Web Publishing Service.

Step 6 Click Start from the popup menu.

Step 7 Wait for WWW Services to start.

Step 8 Right-click FTP Publishing Service.

Step 9 Click Start from the popup menu.

Step 10 Wait for FTP Publishing Service to start.

Step 11 Close the Services application.