|
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:
- Create a transport object
mytransport = create transport
- Specify the communications driver
mytransport.driver = "WinSock"
- Specify the server application name
mytransport.application = "dpbserv"
- Activate the listener
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.
|