Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
d565d71a
Commit
d565d71a
authored
Mar 11, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://vo20.nl/git/uva
parents
49248d15
730418fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
telematica/ass1/doc/implementation.rst
telematica/ass1/doc/implementation.rst
+9
-9
No files found.
telematica/ass1/doc/implementation.rst
View file @
d565d71a
...
@@ -46,15 +46,15 @@ other less relevant ones):
...
@@ -46,15 +46,15 @@ other less relevant ones):
Because those function callbacks have self-documenting names, the callbacks are
Because those function callbacks have self-documenting names, the callbacks are
not further discussed here (for more information about those callbacks, see the
not further discussed here (for more information about those callbacks, see the
implementation in *async.py* and *asyncbase.py*). This event callback mechanism
implementation in *async.py* and *asyncbase.py*). This event callback mechanism
allowed us to easily buil
t
an interactive user interface on top of the
allowed us to easily buil
d
an interactive user interface on top of the
connection. Those various callback functions will handle the connection-specific
connection. Those various callback functions will handle the connection-specific
logic and triggers a new UI event based on the
event occurred
.
logic and triggers a new UI event based on the
occurred event
.
For example, if an authentication response is sent to the client (
when
the
For example, if an authentication response is sent to the client (
after
the
client sent **USER foo\\r\\n** to the server), the function **handle_read()** is
client
has
sent **USER foo\\r\\n** to the server), the function **handle_read()** is
called. This callback will parse the response and, if the authentication is
done
called. This callback will parse the response and, if the authentication is
successful
ly
, trigger an *authenticated* UI event (which will be received by the
successful, trigger an *authenticated* UI event (which will be received by the
text-based user interface). This event mechanism allows a developer to buil
t
text-based user interface). This event mechanism allows a developer to buil
d
different user interfaces on top to a client connection, instead of developing
different user interfaces on top to a client connection, instead of developing
the response handling over and over again.
the response handling over and over again.
...
@@ -89,8 +89,8 @@ Text-based interface (using curses)
...
@@ -89,8 +89,8 @@ Text-based interface (using curses)
The designed text-based user interface consists of four major components:
The designed text-based user interface consists of four major components:
1. **Main chat window.** This window displays all notifications sent from the
1. **Main chat window.** This window displays all notifications sent from the
server and will show all chat messages
sent and received. This window
is
server and will show all chat messages
that have been sent or received. Th
is
shown at the top of the interface.
window is
shown at the top of the interface.
2. **Debug log window.** Information regarding the chat protocol, incoming and
2. **Debug log window.** Information regarding the chat protocol, incoming and
outgoing protocol messages and raised exceptions are displayed in this
outgoing protocol messages and raised exceptions are displayed in this
...
...
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