I'm designing a software class diagram for IPC's communication manager which wraps different communication libraries. Each library serves similar apis for communication eg. connect, disconnect, send, onReceived and so on. And supported transport protocols are different like this.
-
LibA This supports tcp, udp and websocket communication for server/clients.
-
LibB This supports tcp, http, https communication for server/clients.
For clients who use my communication manager, I want to abstract what a communication library is used. Because both libA and libB may be replaced different but similar library, LibC.
In such situation, what is a good GoF design for communication manager? May Strategy pattern be good for this case?
Aucun commentaire:
Enregistrer un commentaire