Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 2nd, 2006, 08:15 PM
Authorized User
 
Join Date: Nov 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default ZModem over TCP/IP

Hi all,

I am having a hard time finding a control or DLL or code that will allow me to implement ZModem file transfer functionality to my app. My app uses telnet and terminal emulation controls to connect to IP devices.
I found lots of controls to implement TCP and Telnet sessions and lots to do ZModem transfer over serial ports, but nothing over TCP.
Has anyone implemented or knows of any tools to accomplish this. Any help is appreciated.

Thanks,

George.

Reply With Quote
The Following User Says Thank You to geogomez For This Useful Post:
  #2 (permalink)  
Old August 3rd, 2006, 12:10 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

This seems like apple and oranges. TCP is a communications protocol, and serial port is a communication path. (Isn't it?)
In the same vein, ZModem is a file transfer protocol, and the serial port is a communication channel.

It seems if you have a modem connected to com1, you would use ZModem protocols to send info to com1. the modem would handle converting the data (the protocol) to the proper voltage levels and timing (the communication physics) and communication would take place.
Reply With Quote
  #3 (permalink)  
Old August 3rd, 2006, 08:56 PM
Authorized User
 
Join Date: Nov 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

Bottom line is, I want to transfer files using ZModem over Ethernet . My app happens to have a socket open with a remote device and I need to implement ZModem file transfer over that link. This has nothing to do with serial ports. I don't want to have to implement ZModem from scratch.

Reply With Quote
  #4 (permalink)  
Old April 10th, 2007, 06:52 PM
Registered User
 
Join Date: Apr 2007
Location: , , Canada.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It doesn't make sense to implement zmodem for tcp because tcp is a reliable protocol. Implementing zmodem over tcp would only add overhead - ZModem is designed to handle errors and retransmit blocks when errors occur. TCP will handle all errors transparently. The only benefit that zmodem would provide would be a way to transfer multiple files without reestablishing the connection. You could implement a far simpler protocol for providing the ability to send multiple files without reconnecting.

Reply With Quote
  #5 (permalink)  
Old December 27th, 2007, 03:59 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did anyone bother to ask "why" he needed to have zmodem? There are a number of programs designed for emulating BBS systems and/or feeding the output from one from false COM ports to TCP/IP. I just went looking for something similar, hoping that it would be in some language other than C, so that I could make a plugin for a telnet client I use. That way, I could log into some of these simulated BBSs and download stuff from them. Sure, FTP works too, if/when the files are available from them that way. In his case, he might be trying to run one of these, and needed some way to test it. In my case, the client I am using doesn't have it, so I can't download the re-roller for a game I want to play, which means either a) coding one myself or b) making a plugin to support zmodem.

As for the absurd idea that TCP would handle all that stuff.. Well, why the @#$#@$ did anyone bother designing FTP, bittorrent, or those other "redundant" protocols, if all you need to TCP/IP. lol FTP, bittorrent, HTTP, etc. are "all" layered over top of TCP/IP, some are transfer protocols themselves, and not all of them that are work that well. FTP, for example, can be tied to a server that doesn't allow resuming, or be written so badly in the client/browser its in that it can't handle certain failure/time outs/errors properly. More than a few times I have lost hours from a download because the damn server refused to allow a resume, or timed out, and the damn FTP protocol insisted the entire file was completed, even when it was like 1k short...

Point being, there is a legitimate reason to want to use zmodem, if you are running, connecting to something that emulates BBS servers. And arguing that you don't *need* or that there are better existing protocols, misses the point entirely, isn't always true, and **all** of them add overhead to TCP/IP anyway, making that argument totally meaningless. The only time you "ever" use anything close to pure TCP/IP is for something like telnet, and even then there are protocols added to support ANSI, colors, MXP, Pueblo, etc, etc, etc.

To answer you Geogomez. Its hard to find anything that does what you want. I know, I have looked. The biggest issue I can see in coding one is realizing that zmodem assumes that "it" will be building the packet. I.e., it assume it will receive a z, then an r, etc. and, I assume, works on it as it goes. So you have to "fake" this process, since TCP/IP is going to give you the entire string, while a modem only gives you each character, one by one. If it instead builds a complete string, then tries to parse the string (which would be redundant on a COM port, so isn't likely), then it would be even easier, but I doubt it.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting client ip in service using tcp connection RevengerPT .NET Web Services 5 March 31st, 2008 05:36 AM
another tcp/ip related query watashi C# 2005 0 August 30th, 2007 07:31 PM
Serial to tcp/ip watashi C# 2005 1 August 28th, 2007 01:48 AM
TCP/IP HELP jpsultana VB.NET 2002/2003 Basics 0 September 29th, 2005 01:37 PM
TCP/IP Data is Being Concatenated owain Pro VB 6 2 December 9th, 2003 08:12 PM



All times are GMT -4. The time now is 08:02 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.