Gamingphreek
Lifer
**Please don't provide any direct code as this is HW. Hints/Advice is welcome, but nothing else**
I have a Network Architecture Programming project due on Sunday night and, given my extreme case of Senioritis 😉, I've waited until right now to start.
We can write the client and server in any language, but I'm actually torn between POSIX C++ and Java.
We are pretending that the data transfer is reliable and that it needs to simply transfer a file of up to 1GB in size.
The next assignment will be to multi-thread the code, so thread safe functions and the ease of multi-threading is preferred.
My question is, which language would this be easiest and fastest to do this in? I'm thinking Java given its Multi-threaded support and high level sockets() API.
I've made a telnet/curl server in C that supported HTTP/1.1 (Concurrent threads using fork(), and persistent connections). Should this be similar to that for the most part? I don't see this project taking very long at all (at most a few hours - would I be vastly oversimplifying something?)
Thanks,
-Kevin
Edit: Heck thinking about this, it should only take about 50 lines and a couple minutes to get it working (In Java) unless I'm way way off base.
I have a Network Architecture Programming project due on Sunday night and, given my extreme case of Senioritis 😉, I've waited until right now to start.
We can write the client and server in any language, but I'm actually torn between POSIX C++ and Java.
We are pretending that the data transfer is reliable and that it needs to simply transfer a file of up to 1GB in size.
The next assignment will be to multi-thread the code, so thread safe functions and the ease of multi-threading is preferred.
My question is, which language would this be easiest and fastest to do this in? I'm thinking Java given its Multi-threaded support and high level sockets() API.
I've made a telnet/curl server in C that supported HTTP/1.1 (Concurrent threads using fork(), and persistent connections). Should this be similar to that for the most part? I don't see this project taking very long at all (at most a few hours - would I be vastly oversimplifying something?)
Thanks,
-Kevin
Edit: Heck thinking about this, it should only take about 50 lines and a couple minutes to get it working (In Java) unless I'm way way off base.
Last edited: