neerma@cod.NOSC.MIL (Merle A. Neer) (10/26/89)
We are having problems developing client/servers on FTP Software and looking for guidance. Here are the problems encountered so far: 1. If we do connect to a foreign socket where no server is listening, subsequent connects to the same socket will return "socket in use"......we want to keep trying until it opens. 2. We want to perform what FTP Software calls a "hard-close" that is, force the connection closed regardless of any required TCP-timeouts. The hard-close does not work but the connection will time-out as usual. 3. Maximum # of descriptors is limited to 20 on DOS... we need 32. Our software will not work unless these problems are resolved. HELP! neerma at nosc.mil Merle Neer 619-553-3974 NOSC San Diego
jbvb@ftp.COM (James Van Bokkelen) (10/27/89)
In article <1680@cod.NOSC.MIL>, neerma@cod.NOSC.MIL (Merle A. Neer) writes: > 1. If we do connect to a foreign socket where no server is > listening, subsequent connects to the same socket will > return "socket in use"......we want to keep trying until > it opens. This was a known problem in the v2.03 kernel, fixed in pl2 and later. My support people told this to someone at your site yesterday. > 2. We want to perform what FTP Software calls a "hard-close" > that is, force the connection closed regardless of > any required TCP-timeouts. The hard-close does not > work but the connection will time-out as usual. If you must use the SOCKET library, set the SO_LINGER option with "optval" pointing to a word of 0. Otherwise, use net_abort(). > 3. Maximum # of descriptors is limited to 20 on DOS... > we need 32. Can't be done with the SOCKET library (the sockets are mapped to DOS file handles, and MSC won't let you have more than 20 of them in a process; we will when MSC does). We recommend that you use the native library and "global" network descriptors, where 32 descriptors work just fine. -- James B. VanBokkelen 26 Princess St., Wakefield, MA 01880 FTP Software Inc. voice: (617) 246-0900 fax: (617) 246-0901