forked from MeghnaM/chat-service-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdu_data.py
More file actions
20 lines (17 loc) · 665 Bytes
/
Copy pathpdu_data.py
File metadata and controls
20 lines (17 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
CS 544 - Computer Networks
5.26.2017
Group 5: Chat Service Protocol
File: user.py
Members: Ted, Shivam, Meghna, Jeshuran
File summary:
The purpose of the file is to transfer the details received at the server to the request handler
"""
"""Stores details of details received at the server"""
class PDUData:
"""Constructor of PDUData"""
def __init__(self, nick="", params=[], channel="", payload=""):
self.nick = nick # Username
self.message_parameters = params # Parameters for the PDU
self.channel_identifier = channel # 3 bit channel identifier
self.payload = payload # Data