Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 23 :: Page 70
Next Lesson: Course 3:: Session 23 :: Page 90
Connection Object Functions

The connection object has five functions:
ConnectToServer: connects the client application to the server application using the values set in its various properties.
DisConnectToServer: disconnects the client application from the server application.
RemoteStopConnection: allows a connected client application with administrative privileges to disconnect a specified client connection from the server application.
RemoteStopListening: allows a connected client application with administrative privileges to command a server application to stop listening for requests.
GetserverInfo: allows a client to retrieve information about its connection to the server into a structure of the type ConnectionInfo. It also allows a client with administrative privileges to retrieve information about all client connections to a server in a structure array of the type ConnectionInfo. The ConnectionInfo structure has the following properties:

Property Data Type Description
Busy Boolean Indicates whether the client connection is currently making a request.
CallCount Long Indicates the total number of requests made by that client connection.
ClientID String Indicates the ID of the client connection.
ConnectTime DateTime Indicates the date and time the client initiated the connection.
LastCallTime DateTime Indicates the date and time of the last request made by this client connection.
Loaction String Indicates the location of the client.
UserID String Indicates the user ID of the client that made the connection.
HomePrevious Lesson: Course 3:: Session 23 :: Page 70
Next Lesson: Course 3:: Session 23 :: Page 90