Re: Transfer Files via an ActiveX socket

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yea - I think I am somewhat on my own. I have everything working it's just
when I increase the packet size it speeds up the transfer but increases the
errors more than I would expect.

Thanks again,
Mike

"Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in message
news:uMHGS3QhKHA.6096@xxxxxxxxxxxxxxxxxxxxxxx
You're on your own I fear. Might want to ask in a networking newsgroup.

Dan

MikeA wrote:
Hi Dan - yes there are several reasons why in this particular sitution a
socket is more efficient.

I have everything working it's just the socket transfer is not optimized.
It seems that when I set the packet size to around 8K a lot more errors
occur than I would expect (even when I test it on my LAN). But, when I
set the packet size to around 1K, no errors occur but the transfer is a
LOT slower.

1. I'm basically looking to allow my clients the ability to change
information without internet access and then sync information (to the dbf
tables and files) later via the internet. A lot of my clients do not have
FTP set up and the client/server app I wrote in VFP allows them to
connect and syncs all the data. In other words, work offline without
internet access then sync later.

2. Several files will need to be synced back and forth from client to
server and vice/versa and each will be dependent on what is sent and/or
received. The idea of using two VFP programs (one client side and one
server side) to monitor when a file has finished transferred via FTP can
be done but it seems a bit cumbersome. The biggest problem though is I
want the program to be "self contained" and not demand that all my
clients have an FTP site as many of them do not. Also, I should be able
to expect the same or similar speed via a socket the same way files are
transferred with various remote access programs.

Do you know if there is some way I could simulate a "mapped drive" if I
have successfully connected two computers via a socket? Then I could
just use a COPY command. That might be something to explore also.

Thanks,
Mike

"Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in message
news:eq8eoIOhKHA.2160@xxxxxxxxxxxxxxxxxxxxxxx
MikeA wrote:
Does anyone know of a quick and simple way to transfer files once a
socket connection has been made between two computers. I have VFP code
client and server programs I have written and I have code that I wrote
to transfer files and it does work but it just doesn't seem to be as
optimized as I would like and I'm wondering if there is a simpler way.
Just curious: is there a reason you're required to use a socket when FTP
(file transfer protocol) would be far more efficient and unlike sockets
is actually intended for file transfers?

Dan


.



Relevant Pages

  • Re: 802.11 B&G
    ... will the clients using G have slower rates? ... You'll see a slowdown in 802.11g even if there's no traffic to the ... If you're transferring data at full 802.11g speeds, ... 802.11b packet drifts by, you stop for a long time. ...
    (alt.internet.wireless)
  • Re: How to terminate a socket in CLOSE_WAIT state
    ... FTP Server fixed for certain FTP clients who use both passive ... This was causing a PASSIVE opened socket to be left ... but instead expect the "half close" from the receiver. ... this sends a TCP/IP FIN packet to the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: NIO and accepts()
    ... > In a nutshell the idea is that an increasing number of clients will slow ... > anymore) whereas the iocp server still works. ... > synchronization with the socket subsystem) and perhaps send SYN/ACK ... Thread handling this will do it calls to the socket subsystem ... ...
    (comp.lang.java.programmer)
  • [PATCH 2.6.15.4 1/1][RFC] ipt_owner: inode match supporting both incoming and outgoing packets
    ... I am not familiar with kernel internals, so please correct me where I am ... filter packets by the program who is going to receive the packet ... when multiple programs share a socket, ... struct vfsmount **mnt) ...
    (Linux-Kernel)
  • [PATCH 2.6.15.4 1/1][RFC] ipt_owner: inode match supporting both incoming and outgoing packets
    ... I am not familiar with kernel internals, so please correct me where I am ... filter packets by the program who is going to receive the packet ... when multiple programs share a socket, ... struct vfsmount **mnt) ...
    (Linux-Kernel)