Encrypted Chat Room 4

xiaoxiao2021-03-06  19

. Class ControlCentreThis class is responsible for start-up of the client-server network It provides an interface for users to add new clients to the network.attributesserver: ServercontrolPanel: ControlPaneloperation specifications ControlCentre () - constructor: creates a Server object; creates the Control Panel Interface for Adding New Clients.pre: NonePost: a Server Object Has Been Created and Assigned To Server. A ControlPanel Object Has Been Created and Assigned to ControlPanel.

class ControlPanelThis class provides an interface for users to add new clients to the network.attributesserver: Serverclient: Clientoperation specifications ControlPanel (server: Server) - constructorpre:. server not nullpost: self.server = server A control panel interface is displayed, containing . a function to add new clients attachClient () - handles the add new client event and creates a Client object.pre: nonepost: A new Client object has been created, and added to the server's list of currently connected clients.

转载请注明原文地址:https://www.9cbs.com/read-43866.html

New Post(0)