File sharing app?

Everything else that doesn't fall into one of the other PB categories.
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

File sharing app?

Post by Kaiser »

I was wondering... it wouldn't be any problem if a file sharing app is made with PB and Open Source? Dunno... this came to mind suddenly as most apps of that kind are made in C++ or something similar, and didn't know if that was allowed to be made in PB... right?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: File sharing app?

Post by Polo »

Kaiser wrote:I was wondering... it wouldn't be any problem if a file sharing app is made with PB and Open Source? Dunno... this came to mind suddenly as most apps of that kind are made in C++ or something similar, and didn't know if that was allowed to be made in PB... right?
Err, you're allowed to do anything you want :?
It's not really a matter of what language you use, it's a matter of what you do, but there's no restriciton...
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

Post by Kaiser »

I see, thanks :D
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

PB is not the best (i can even say from experience, kinda "lazy" choice)
compiler for programming network stuff. for complex network you need to control threads which is a big issure in purebasic also that it cant handle strings as well. so i guess we need to wait PB 4.0 where all this is fixed.

then we can talk i dont mind start a project of this.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

We have startet coding a filesharing tool like emule, but started with the project before the first version of emule has been ever released! The program worked for 98% and had more features as emule dont has it today!

We must stopped the project due fact of some purebasic-internally limitations/bugs !! Until today its not possible to solve our problems with the latest PB version! (so we never released any "bugy" version... very sad!
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

va!n wrote:We have startet coding a filesharing tool like emule, but started with the project before the first version of emule has been ever released! The program worked for 98% and had more features as emule dont has it today!

We must stopped the project due fact of some purebasic-internally limitations/bugs !! Until today its not possible to solve our problems with the latest PB version! (so we never released any "bugy" version... very sad!
Why not releasing it ? :)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

What Problems are impssoibel to solve?
Waorking on my P2P Filetransfer for our Messenger whichj has somewhat fileshareing (A XML implementation of shared folders) I really wonder what could be impossible to solve in PB forgetting that files over 4 gb are impossible without doubles^^ But hey that will be gone with version 4 :lol:
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Thee where several problems with our P2P Server and Client. As mentioned the first problem was the file size limit. It would be never possible to share huge files on the network.

Also mentioned here by Pantcho!! is the controll thread that fuXXed up by the strings-buffer limitation in threads. So we lost a lot time for recoding.

The Clients was stable enough to use, the mostly bugging part was the server and his search functions. It is absolutly nessesary to use threads for searches on server-side. And that was the end of the story. Till today: not possible, only with the use of an external database or you code your own String-Commands that are thread-save.

Now wait for 4.0 and lets see...

Mike
Tranquil
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

@Tranquil:
Now wait for 4.0 and lets see... <<< :wink:
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Very interesting indeed
Yeah Threads are a big Probelm my Software uses a database to search for contacts but yeah a bit problematic there too because I still have to wait for the database to find the Users. Hopefully we will be able to solve these problems don't now how much will change with 4 considering network stuff but even without better Networ it will make things possible through the normal Thread safety I think.
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

In most cases storing datas in a database like mySQL is the best way. But sometimes it is better to hold this datas in memory (as for a P2P-Server) couse they are changing very fast. In any other project I would use a normal database.
Tranquil
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Yeah of cause we also store data in memory the databse only holds data which shell last even after a reboot. nFor example user accounts but the information who is logged in is stored in a structured LinkedList. It's working really good though my power test yesterday showed that there most be still a problem missing in my send and receive funtion really hard to design they are. I have got splitted messages and more than one message per buffer working but when sending with delay(0) on the local mashine probably 3 of 10 000 messages get coruppted and I really don't know how to solve that problem. Maybe we could work together in this and try especially when 4.0 comes to build a hundred percent working network function for sending and receiving strings.
bye Nik
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Are you using UDP or TCP to transport your datagrams?
Please check the Result of SendNetworkData() or Send_() (depends on what command you are use) Maybe a Socket_Error is returned.

On wich way do you catch the networkevents? Pooling or eventdriven?
I'm very intrested in your work. I see your home location is germany, maybe we should visit us in ICQ, Chat or somewhere else? :)

Mike
Tranquil
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Well yeah spend a few hours reseahrching today, seems that somehow I destoried the code handling splitted packages got it working again but couldn't test it with realy fast comming datagrams but with really long ones.
So untested is wether 1 normal and a splitted package together in one buffer are handled correctly maybe I have to change some lines for this I will test it tomorrow.
I am using TCP and because our server will have to work on Linux only standard Purebasic Networking which really doesn't help to make things easier. But from my experience I can say it's certanly possible. Though I see that my implemantation at the moment isn't working correctly will take some days ^^if you want I can PM you my Senden and receiving functions!
bye Nik
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Nik wrote:if you want I can PM you my Senden and receiving functions!
bye Nik
Please...
Tranquil
Post Reply