-
Remote Features
hey im making a file explorer and some other things...i was wonder how can enable this project to have a client side and a server side in which the data is pass over a network
i am looking for examples at planetsourcecode and im doin other research i was wondering if i could get some information or useful advice from here
:) thanks
and one more thing...is it possible for me to have a progess bar that shows realtime progess of a process or a routine being carried out by my program?
eg: a progress bar for the file transfering routine
-
Re: Remote Features
Winsock is what you want. For this, I'd use the Winsock Control (Right click the toolbox, Components, Microsoft Winsock Control vX.X). To do it right, I'd look at some chat program source first (heaps and HEAPS on PSCode), to get the idea of sending information across Winsock. There are a few ways to go about it.
1) Have the client side program sitting idle with the FileListBox and DirListBox etc, and just have a list built of each folder that is in the current Client directory, then send it all in 1 string, using Split() on the server to split each one up (possibly using a special symbol to determine the ownership of the folder).
2) Study some File Transfer program source code, and learn how to use Winsock.PeekData to transfer a big amount of data, in small pieces (those can be found here on the forums aswell). That will be needed for a long list of folders/files.
The status bar is something mentioned alot of times here on the forums. Even on this same page I think theres a post a bit further down. Its just a matter of setting the value and using your counter (for the current operation) to increment it. Have a search of the forums. :wave:
chem