Encrypted Chat Room 4

xiaoxiao2021-03-06  20

. Class SessionThis class maintains information about the chat session between two clients A pair of clients chatting each maintain a Session object, identifying the session with the same unique sessionId.attributessessionId: IntegerchatBuddyName: String {name of client to which this client established a communication session } sessionKey: String {key used for encryption of messages for a single session} startTime: Datestate: StringinvariantsessionId is unique for each client-client sessionsessionKey must contain one or more capital letters that have an ASCII value between 65 and 90.state can have the .

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

New Post(0)