Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
csci363
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
csci363
Commits
a52f5bed
Commit
a52f5bed
authored
May 02, 2019
by
wx002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme.md
parent
5ea881e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
48 deletions
+48
-48
proj_IRC/readme.md
proj_IRC/readme.md
+48
-48
No files found.
proj_IRC/readme.md
View file @
a52f5bed
This is the basic implementation of IRC Server/Client over TCP.
Currently only supports one server with many clients, capable of one-one and one-to-many communication
To run:
-
IRC_Server: Python IRC_Server.py
[
ip
]
[
port
]
[
server name
]
-
Client: Python Client.py
[
server ip
]
[
server port
]
[
Name
]
COMMAND_LIST =
[
'/join', '/msg', '/part', '/quit', '/list', 'help', '/create', '/names'
]
Command Details:
**/msg:**
-
syntax: /msg
[
target
]
:
[
message
]
-
desc: send a message to target, target is either a channel or a user
**/join:**
-
syntax: /join
[
channel name
]
-
desc: joins the specified channel
**/part:**
-
syntax: /part
[
channel name
]
-
desc: leaves the specified channel
**/quit:**
-
syntax: /quit
-
desc: exit the server
**/list:**
-
syntax: /list
-
desc: display a list of existing channels
**/create:**
-
syntax: /create
[
channel name
]
-
desc: create the channel with the specified name
**/names:**
-
syntax: /names
-
desc: display the list of online users
Implementation Structure:
-
IRC_Server: The main server class, handles all packet transfer
-
irc_db: The database to keep track of all connections and channels, and delete records for user logging out
-
Channel: The class that handles packets for in channel communication as well as user leaving
Organization for irc_db:
-
Users: store as bidirectional dictionary, allows to be able to access by name and socket
-
ChannelList: organized using dictionary as name:Channel_Obj
Limitations:
-
Lacks support for server network
-
Lack authentication
-
Require unique NICK for registration, which can be problematic when use for large user base
Reference:
[
IRC RFC
](
https://tools.ietf.org/html/rfc2812#section-3.1.7
)
[
Example of IRC Communication
](
http://chi.cs.uchicago.edu/chirc/irc_examples.html
)
This is the basic implementation of IRC Server/Client over TCP.
Currently only supports one server with many clients, capable of one-one and one-to-many communication
To run:
-
IRC_Server: Python IRC_Server.py
[
ip
]
[
port
]
[
server name
]
-
Client: Python Client.py
[
server ip
]
[
server port
]
[
Name
]
COMMAND_LIST =
[
'/join', '/msg', '/part', '/quit', '/list', 'help', '/create', '/names'
]
Command Details:
**/msg:**
-
syntax: /msg
[
target
]
:
[
message
]
-
desc: send a message to target, target is either a channel or a user
**/join:**
-
syntax: /join
[
channel name
]
-
desc: joins the specified channel
**/part:**
-
syntax: /part
[
channel name
]
-
desc: leaves the specified channel
**/quit:**
-
syntax: /quit
-
desc: exit the server
**/list:**
-
syntax: /list
-
desc: display a list of existing channels
**/create:**
-
syntax: /create
[
channel name
]
-
desc: create the channel with the specified name
**/names:**
-
syntax: /names
-
desc: display the list of online users
Implementation Structure:
-
IRC_Server: The main server class, handles all packet transfer
-
irc_db: The database to keep track of all connections and channels, and delete records for user logging out
-
Channel: The class that handles packets for in channel communication as well as user leaving
Organization for irc_db:
-
Users: store as bidirectional dictionary, allows to be able to access by name and socket
-
ChannelList: organized using dictionary as name:Channel_Obj
Limitations:
-
Lacks support for server network
-
Lack authentication
-
Require unique NICK for registration, which can be problematic when use for large user base
Reference:
[
IRC RFC
](
https://tools.ietf.org/html/rfc2812#section-3.1.7
)
[
Example of IRC Communication
](
http://chi.cs.uchicago.edu/chirc/irc_examples.html
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment