I donβt think I know, but why donβt you look, for example, at the source code of FileZilla (http://svn.filezilla-project.org/filezilla/FileZilla3/trunk/src/engine/)? This is open source, take advantage of this. You probably won't use this code as it is, but at least it will give some ideas for you to get started.
user500944
source share