ListDir, UploadFile, etc. (General questions)
Hi, there doesn't seem to be any documentation for ListDir, UploadFile, etc. Are these methods officially supported? If so, how do you get the information from a ListDir call?
Also, the TransferProgress event is using signed 32-bit integers for the Position and Total params. Shouldn't it be using 64-bit integers? Many files are over 2GB in size these days :)
I've been trying the simple network example code. Everything works great, except the Search doesn't work unless I search at the same time from both clients. Both clients are on the same computer. Any reason why the search needs to be done at the same time on both ends for it to work?
Thanks!
Re: ListDir, UploadFile, etc.
Having looked at the mediator PHP script in more details, I now understand the reason why the search has to be at the same time.
Re: ListDir, UploadFile, etc.
Hi Chip,
There are no files like that in wodVPN, since whole point of wodVPN is to simulate network and have access to computer just as if they were in LAN. In that case, when connection is established, you can access other peers network shares etc.
However, you could i.e. implement sockets which would work thru wodVPN connection if you wish.
Please note that wodVPN's SendData isn't really designed to work with huge file transfers, since all other wodVPN activity would be frozen until transfer is finished. That's why Port Forwarding should be used instead. That is also the reason why there is no TransferProgress64 implemented.
However, if it is really necessary, we could probably add it.
Regards,
Damba
Re: ListDir, UploadFile, etc.
Hi, thanks for the reply. My concern with using the VPN network adaptor is that, as you say, it gives access to the shares on the remote computer (and all its services). Many users still login as Administrator and have no password, so having a VPN connection is not something they'd like as it leaves them wide open.
Let's say, for example, that I wanted to connect to a remote computer, but did not want the other side to have access to their shares, ports, etc. However, I do want to transfer files from one to the other as quickly and securely as possible. What is the best way to do it?
You mention implement sockets which would work thru wodVPN connection if you wish . But how would that work? Do you mean by using the VPN network adaptor. If it wasn't used, how would it be done?
Thanks
Re: ListDir, UploadFile, etc.
Chip,
In that case, you would have to use PortForwarding (implemented in wodVPN already) and forward some port to peer.
Here's the idea behind sockets. Let's say you connect two peers. Now, start listening socket on some port, and start client socket on other side. Now make a local listen port on client side, and use the socket to connect to it (will then connect to localhost:port_you_assigned). wodVPN will then forward client connection to peer's listening socket, and you can transfer anything you want.
Hope this helps.
Regards,
Damba
Re: ListDir, UploadFile, etc.
Hi, I'm not having much luck.
I have computer A (client) & B (server) that connect using wodVPN (but not by using the VPN network adapter).
On the server I run a simple UDP listening program (listening on port 600). On the client, after connecting, I call Relays.Add(600) and then run a UDP sending program (sending on port 600). The problem here is that the server side is being blocked by the Windows firewall (and any router on that side as well).
Obviously I'm doing something wrong here?
Re: ListDir, UploadFile, etc.
Hi Chip,
You don't need a Relay. You should create a Channel instead. Something like this:
[code]wodVPN1.Channels.Add UDPLocalListen, your_ip_address, 600, localhost, 600[/code]
You can also try the 1.Simple sample that came with the component. It will do the same thing.
Hope this helps.
Regards,
Damba
Re: ListDir, UploadFile, etc.
Thanks, I've now got it working, except I've discovered that their is sometimes a transmission corruption problem. If large amounts of data (over 200,00 bytes) are transmitted then in many cases the data received does not match the data sent. The data is sent and received via another application (via TCP) and there are no corruption problems if wodVPN is not used. Transmission corruption problems only occur when using wodVPN to forward the data.
I'm guessing that even though TCP is used, you're forwarding via UDP? Is there a way to make the transmission reliable?
Re: ListDir, UploadFile, etc.
Chip,
Can you please try to change UDP forwarding to TCP in Add (VPNChannel) Method.
More help for Add Method you can find here:
http://www.weonlydo.com/VPN/Help/WODVPNLib~VPNChannels~Add.html
Let us know how it goes.
Drazen
Re: ListDir, UploadFile, etc.
Can you please try to change UDP forwarding to TCP in Add (VPNChannel) Method.
Hi, I'm already using TCP forwarding.
Re: ListDir, UploadFile, etc.
Chip,
Which software you are using for transferring files? Can you give us some instruction how can we duplicate your problem?
Please make sure that you are using latest 2.1.2.82 version of wodVPN.
Drazen
Re: ListDir, UploadFile, etc.
Hi, I'm using the latest version. For transferring files I'm using the
BIGSPEED File Sharing SDK. It comes with a simple file server and client (EXE's are included). You just need to forward TCP port 2222 with wodVPN:
http://www.bigspeed.net/download.php?url=bsfilesdk/bsfilesdk_free_setup.exe
If I use wodVPN, and transfer large files, then some of them will not transfer correctly (the BIGSPEED client will give a hash error). However, if I don't use wodVPN (and open the firewall) then I never get any hash errors.
Thanks for looking into this. I'm very keen to purchase wodVPN for a product we're developing, so I'm really hoping you can resolve this [:wink:]
Re: ListDir, UploadFile, etc.
Chip,
Could you perhaps send us a sample applciation that we could directly run on our side in order to duplicate this behaviour?
Also, could you try using some other application? Like FTP server-client?
Regards,
Damba
Re: ListDir, UploadFile, etc.
Hi, how do I send you the files?
Re: ListDir, UploadFile, etc.
Chip,
You can send it to techsupport@weonlydo.com
Regards,
Damba
Re: ListDir, UploadFile, etc.
Sent.