D
Denville Longhurst
Hello experts
I am sure the answer is in the paperwork somewhere, but the following have
evaded me:
1. Can I set the time-out for attempting to make a TCP/IP connection? At
the moment it seems to take about 20 seconds before returning failure. It's
a small, totally private, network with no routing etc. so I would like to
set the timeout at 1 or 2 seconds.
2. When sending to a TCP/IP address not on the PC's local sub-net but on the
same (small) physical network, can I somehow tell the system to look for it
locally without setting a route in the routing table? (Or if not, can I set
a route within the app with an API call?)
3. I want to make infrequent connections (maybe once a minute) to the server
then disconnect so that other PCs can do the same. I couldn't find a
'disconnect' command so should I (and is it safe to) destroy the socket each
time and re-create it anew the next?
There are no third-party applications involved, both clients and server will
be writen by me.
OS is W2K or XP Pro
Many thanks for any advice..
Denville
I am sure the answer is in the paperwork somewhere, but the following have
evaded me:
1. Can I set the time-out for attempting to make a TCP/IP connection? At
the moment it seems to take about 20 seconds before returning failure. It's
a small, totally private, network with no routing etc. so I would like to
set the timeout at 1 or 2 seconds.
2. When sending to a TCP/IP address not on the PC's local sub-net but on the
same (small) physical network, can I somehow tell the system to look for it
locally without setting a route in the routing table? (Or if not, can I set
a route within the app with an API call?)
3. I want to make infrequent connections (maybe once a minute) to the server
then disconnect so that other PCs can do the same. I couldn't find a
'disconnect' command so should I (and is it safe to) destroy the socket each
time and re-create it anew the next?
There are no third-party applications involved, both clients and server will
be writen by me.
OS is W2K or XP Pro
Many thanks for any advice..
Denville