mTCP new release 27/June/2010 - now ported to Open Watcom (Announce)
On the file transfer, it looks like you didn't specify binary before starting the transfer. So LFs (0x0a) were converted to CR/LFs (0x0a 0x0d) by the server during the transfer. There isn't much I can do about that without doing something ugly like stuffing a 'BIN' command in the command ahead of the transfer first. I'm going to call that one a user error. 
I don't know why the server closed the control connection. It's possible that it timed out, and on the first command that you sent the dropped connection was noted. From the statistics at the end I can see no retransmits. I can see an enormous amount of dropped packets though - you are losing more than 10% of the packets into your machine. Are you running something else on that machine in the background? What kind of machine is it? (My PCjr and other older machines don't drop packets like this unless I have turned on full tracing, and they have the slowest hard drives in the universe.)
On the config file comments:
I don't like defaults. It's not harsh to have the person set an environment variable to get to the configuration file. I could go looking for the packet interrupt too, but in the unlikely event that the person has two cards they would need to specify the packet interrupt anyway. Also, any extra code that I spend on initialization is stuck in memory long after it is needed so I prefer to keep the initialization code to a minimum.
Don't have a PCjr? Nobody is perfect. Set your own hostname then! I think it is used for DHCP - none of my other apps use it (yet).
BIN vs. ASCII existed long before I ever touched a keyboard. FTP was designed for data transfer across heterogeneous machines, and the only thing that was agreed upon back then was that nobody knew what a newline meant. Which is why Telnet specifies the 'CF/LF' pair and allows each side to translate as needed. FTP has a much richer command set and file transfer modes than anybody probably implements anymore. BIN vs. ASCII is just a holdover that they all still honor even if the other ones are not implemented.
The server determines the default, not the client. You need to send 'BIN' first. I can add 'IMAGE' as an alias.
---
mTCP - TCP/IP apps for vintage DOS machines!
http://www.brutman.com/mTCP
Complete thread:
- mTCP DOS TCP/IP apps for small machines - mbbrutman, 21.01.2010, 18:06
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- mTCP DOS TCP/IP apps for small machines - Japheth, 22.01.2010, 09:47
- mTCP DOS TCP/IP apps for small machines - mbbrutman, 22.01.2010, 16:56
- mTCP DOS TCP/IP apps for small machines - mbbrutman, 07.02.2010, 16:35
- Forget the library .. time to open-source the code? - mbbrutman, 14.03.2010, 03:22
- Forget the library .. time to open-source the code? - Rugxulo, 14.03.2010, 03:56
- Forget the library .. time to open-source the code? - mbbrutman, 14.03.2010, 15:01
- mTCP new release 27/June/2010 - now ported to Open Watcom - Arjay, 27.06.2010, 22:27
- mTCP new release 27/June/2010 - now ported to Open Watcom - Rugxulo, 28.06.2010, 06:30
- mTCP new release 27/June/2010 - now ported to Open Watcom - DOS386, 28.06.2010, 12:05
- mTCP new release 27/June/2010 - now ported to Open Watcom - Arjay, 28.06.2010, 14:22
- mTCP new release 27/June/2010 - now ported to Open Watcom - mbbrutman, 01.07.2010, 07:08
- mTCP new release 27/June/2010 - now ported to Open Watcom - Laaca, 01.07.2010, 13:14
- mTCP new release 27/June/2010 - now ported to Open Watcom - mbbrutman, 01.07.2010, 16:06
- mTCP new release 27/June/2010 - now ported to Open Watcom - DOS386, 01.07.2010, 13:20
- mTCP new release 27/June/2010 - now ported to Open Watcom - mbbrutman, 01.07.2010, 16:03
- mTCP new release 27/June/2010 - now ported to Open Watcom - Laaca, 01.07.2010, 19:16
- mTCP new release 27/June/2010 - now ported to Open Watcom - mbbrutman, 03.07.2010, 16:04
- mTCP new release 27/June/2010 - now ported to Open Watcom - DOS386, 14.07.2010, 03:51
- mTCP new release 27/June/2010 - now ported to Open Watcom - Laaca, 01.07.2010, 19:16
- mTCP new release 27/June/2010 - now ported to Open Watcom - mbbrutman, 01.07.2010, 16:03
- mTCP new release 27/June/2010 - now ported to Open Watcom - Laaca, 01.07.2010, 13:14
- mTCP new release 27/June/2010 - now ported to Open Watcom - mbbrutman, 01.07.2010, 07:08
- mTCP new release 27/June/2010 - now ported to Open Watcom - Arjay, 28.06.2010, 14:22
- mTCP new release 27/June/2010 - now ported to Open Watcom - DOS386, 28.06.2010, 12:05
- mTCP new release 27/June/2010 - now ported to Open Watcom - Rugxulo, 28.06.2010, 06:30
- mTCP new release 27/June/2010 - now ported to Open Watcom - Arjay, 27.06.2010, 22:27
- Forget the library .. time to open-source the code? - mbbrutman, 14.03.2010, 15:01
- Forget the library .. time to open-source the code? - Rugxulo, 14.03.2010, 03:56
- mTCP DOS TCP/IP apps for small machines - mbbrutman, 22.01.2010, 16:56
- mTCP interfacing with TINY remote control for DOS? - Arjay, 20.07.2010, 12:41
- mTCP interfacing with TINY remote control for DOS? - mbbrutman, 20.07.2010, 16:09
- mTCP interfacing with TINY remote control for DOS? - Arjay, 20.07.2010, 17:49
- mTCP interfacing with TINY remote control for DOS? - mbbrutman, 20.07.2010, 16:09
- mTCP DOS - NC documentation issue (design bug)? - Arjay, 20.07.2010, 14:07
- mTCP DOS - NC documentation issue (design bug)? - mbbrutman, 20.07.2010, 15:22
- mTCP DOS - NC documentation issue (design bug)? - Arjay, 20.07.2010, 17:30
- mTCP DOS - NC documentation issue (design bug)? - mbbrutman, 20.07.2010, 19:32
- mTCP DOS - NC documentation issue (design bug)? - Arjay, 20.07.2010, 21:56
- FTP ASCII vs binary "image" - DOS386, 23.07.2010, 07:27
- FTP ASCII vs binary "image" - mbbrutman, 24.07.2010, 01:04
- FTP ASCII vs binary "image" - DOS386, 24.07.2010, 12:12
- FTP ASCII vs binary "image" - Japheth, 24.07.2010, 15:31
- FTP ASCII vs binary "image" - DOS386, 24.07.2010, 15:36
- FTP ASCII vs binary "image" - mbbrutman, 24.07.2010, 16:23
- FTP ASCII vs binary "image" - Japheth, 24.07.2010, 16:57
- FTP ASCII vs binary "image" - mbbrutman, 25.07.2010, 01:35
- FTP ASCII vs binary "image" - Rugxulo, 25.07.2010, 05:34
- FTP ASCII vs binary "image" - DOS386, 25.07.2010, 06:16
- FTP ASCII vs binary "image" - mbbrutman, 25.07.2010, 17:17
- FTP ASCII vs binary "image" | NTLFN issues - DOS386, 26.07.2010, 02:03
- FTP ASCII vs binary "image" | NTLFN issues - mbbrutman, 26.07.2010, 03:11
- FTP ASCII vs binary "image" | NTLFN issues - DOS386, 27.07.2010, 02:53
- FTP ASCII vs binary "image" | NTLFN issues - mbbrutman, 27.07.2010, 03:31
- FTP ASCII vs binary "image" | NTLFN issues - DOS386, 27.07.2010, 03:40
- FTP ASCII vs binary "image" | NTLFN issues - mbbrutman, 27.07.2010, 03:31
- FTP ASCII vs binary "image" | NTLFN issues - DOS386, 27.07.2010, 02:53
- FTP ASCII vs binary "image" | NTLFN issues - mbbrutman, 26.07.2010, 03:11
- FTP ASCII vs binary "image" | NTLFN issues - DOS386, 26.07.2010, 02:03
- FTP ASCII vs binary "image" - mbbrutman, 25.07.2010, 17:17
- FTP ASCII vs binary "image" - DOS386, 25.07.2010, 06:16
- FTP ASCII vs binary "image" - Rugxulo, 25.07.2010, 05:34
- FTP ASCII vs binary "image" - mbbrutman, 25.07.2010, 01:35
- FTP ASCII vs binary "image" - Japheth, 24.07.2010, 16:57
- FTP ASCII vs binary "image" - Japheth, 24.07.2010, 15:31
- FTP ASCII vs binary "image" - DOS386, 24.07.2010, 12:12
- FTP ASCII vs binary "image" - mbbrutman, 24.07.2010, 01:04
- mTCP DOS - NC documentation issue (design bug)? - mbbrutman, 20.07.2010, 19:32
- mTCP DOS - NC documentation issue (design bug)? - Arjay, 20.07.2010, 17:30
- mTCP DOS - NC documentation issue (design bug)? - mbbrutman, 20.07.2010, 15:22
- mTCP DOS TCP/IP apps for small machines - Japheth, 22.01.2010, 09:47
Mix view