br_2_udp's People
br_2_udp's Issues
The whole fuss with TCP
Need to create TCP version. Create clean UDP version before!
Error messages
Implement the printing of error messages specified in the header, not custom ones
Create and transmit sha-value in Sender and Receiver
Handle creation, transmission and checking of sha-value according to task description
Sending Head requires too much space
The length of the buffer sent (by the server) should be nlength + 7 (where nlength is the length of the name) byte. However it does require 8 bytes, or else the file length will be cut after 3 instead of 4 bytes. This is not caused by a terminal character in the name string as cutting the name by one byte actually omits the last character of it.
State checking with state transmission byte
Exit the application if in illegal state (receiving files without header etc)
Converting unsigned char to char and vice versa unnecessary
The +128 and -128 should not be needed in these cases as it is just bytecode and will be re-read on the other side as the right type again. Could even cause nasty problems.
Sending Header (or anything) doesn't account for actual data type length
This could become a problem on systems where data types (int, long, ...) are actually longer than the standard requires. This can be fixed with sizeof(...), however, if sending the data to the next system this can become a problem anyway as it interprets the data differently while reading.
Problem with creating directory
Looks like creating directory needs sudo rights. Also it looks like sometimes a random error occurs and the existing directory is not recognised.
Receiver Timeout
The receiver should wait until the first package arrived before the countdown for a timeout starts.
Documentation
Doxygen and in-file comments
File Transmission
Transmit the file, handle on receiver side
Packet size MTU
"Wählen Sie die Paketgröße so, dass die maximale MTU einer PPPoE-Verbindung nicht überschritten wird"
Change Variable types in sending / receiving header
Up to now wrong variable types are used in the first data package. Description provided on page 3, task page, "Protokollspezifikation"
Timeout
Wait 10 seconds for timeout after sending
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.