Writing a Server Application
\The Sandbox \PB History & Future \New in PB 5 \Distributed PB \Server Application
Server
Application
Client Application

The server application has two main components:

  • Remote objects
  • Transport object

Remote objects are custom class (nonvisual) user objects that have methods that can be invoked by client applications. The primary task in building a server application is writing the methods for the nonvisual objects.

To make a server application function in a distributed environment, you need to use the transport object to begin listening for client connections. The transport object is a nonvisual object that works like the transaction object.

 To listen for client connections:

  1. Create a transport object
  2. mytransport = create transport

  3. Specify the communications driver
  4. mytransport.driver = "WinSock"

  5. Specify the server application name
  6. mytransport.application = "dpbserv"

  7. Activate the listener
  8. mytransport.Listen()

Unlike the transaction object, the transport object is not a built-in global object. You need to declare a variable of type transport. Typically, you will want this variable to be global.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com