View previous topic :: View next topic |
Author |
Message |
ardentcrest Guest
|
Posted: Jan 10th, 2014, 8:30am Post subject: A TNFS |
|
|
I have found this code for a TNFS tiny fileserver for the zx Spectrum.
Do you have any pointers fro converting it from C to Liberty basic
spectrum.alioth.net/svn/listing.php?repname=Spectranet&path=%2Ftrunk%2Ftnfs%2Ftnfsd%2F#path_trunk_tnfs_tnfsd_
It uses UDP and all I can find on the LB forum is about TCP
Any help would be greatful. |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 790
|
Posted: Jan 10th, 2014, 6:07pm Post subject: Re: A TNFS |
|
|
The lack of UDP examples in LB is likely due to how few applications really need it. I think I read somewhere that about 90% of Internet traffic is TCP. UDP is mostly for special cases where the low overhead is needed more than guaranteed reliability.
More to your main question, I have to ask do you have any experience using C or a C-like language? If the answer is "no" or "very little", translating it will be a nightmare.
From my quick look at the readme and main.c files, this app is multi-platform, which means it is loaded with #ifdef's and #elif's for conditional compilation for the features available on certain platforms. Not all C programmers regularly target multiple platforms (including myself) and translating such code to LB would be a very painstaking process.
Do you need the functionality this app provides or do you want to learn how to write a similar app in LB? If the former, you should look around for a compiled EXE or ask someone to build it for you. If the latter, I think you can find easier examples elsewhere. _________________ Brent |
|
Back to top |
|
 |
ardentcrest Guest
|
Posted: Jan 10th, 2014, 7:26pm Post subject: Re: A TNFS |
|
|
Thanks for the reply.
I just want it for windows.
I have found some demos that do chat in VB6 and VB.net but like my C my VB is not to be found. |
|
Back to top |
|
 |
|