摘要 |
A client system communicates with a data server. The client uses one protocol and the server uses a different protocol. The client uses a protocol factory to locate a protocol adapter to convert its protocol to that used by the server. The protocol adapters may be stored in a library. The adapter may be selected by testing each one in turn to see whether it works with the server. Alternatively, the adapter may be selected based on the IP address of the server. The adapter may be located when an application is started or when the client requests data from the server. |