User module¶
-
class
entities.ent_user.
User
(name, nickname, password, connection_socket=None)¶ Bases:
object
Class of User in server
-
set_socket
(connection_socket) → None¶ Set the user socket
- Parameters
connectionSkt – socket of user connection
- Returns
None
-
to_dto
() → dtos.dto_user.User¶ Convert user to dto
- Returns
dto obj
-
to_string
() → str¶ Send the message to all users in this room (broadcast)
:param message:message to be send :param user: user who sent this message
- Returns
None
-
toggle_log
() → None¶ Invert the status of login
- Returns
None
-