cmput379assignment2's Introduction
cmput379assignment2's People
cmput379assignment2's Issues
Server switch function
if first char @, !, ? - do functions a, b, c
Implement Read Size
On client you need to read ONLY the length that is the size being sent. MESSY
Client side read parsing and logic
Refactor socket
Don't open and close every time -> take it out of the while
Client-side Write Sanitization
If no input: keep waiting.
If input: sanitize the formatting of the input and send message.
Server Store (Backend)
Server query (?) function
No message? -> return "no message" message (in assignment pdf)
Message -> return correct message (outlined in assignment pdf)
Interface
-
The client must also give the user to exit orderly (e.g., typing an exit command) and to do the same (orderly exit) if it receives control-C
-
The client should be callable as the following command:
wbc379 hostname portnumber [keyfile]
-
Upon an error condition, a client must be able to terminate as soon as possible when it detects the error (this could be an error in the protocol message it receives), closing the socket of the connection, informing the user about what happened, and exiting.
-
The server should be callable as the following command:
wbs379 portnumber {-f statefile | -n entries}
-
It only (orderly) terminates when a SIGTERM message is sent to it. It is the handling of this SIGTERM that allows the server to dump the whiteboard contents to a file called whiteboard.all in the directory where it started its execution. After handling the SIGTERM, the server terminates. This whiteboard.all follows the format of the statefile. In fact, we should be able to start a previously terminated execution of the server using as statefile the whiteboard.all saved by the previous execution of the server.
Connection established message
Clean out main on both Server and Client
Connection established message
Server SWITCH and GET-MESSAGE function
Receive (read) text
Sanitize input (Logic)
MAIN TODO
- Client side write sanitization - connectAndTalk.c:75
- Server side logic - talk.c:63 (results in writing to socket)
- Client side read - connectAndTalk.c:85
- Connected message on client -
. - Server backend
. - Compile and run convoluted bs
Encrypt/Decrypt Functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.