|
You are talking program protocol, not TCP/IP protocol. Which means, however their server is sending it. It looks to me from this little snippet that they are actually sending the text "move to port 999". And you actually send the text "understood". In which case, when you receive the text "move to port " you need to grab the last part of that message and convert it to a number (in the example 999) and send a response string of "understood", close the connect then initiate a new connection to the same server on port 999. Without any more details of the protocol you are using I'm not 100% positive, but from the description you are giving, that seems to be their protocol. Regards, Jim Langston -----Original Message----- From: Ron@cpumms.com [mailto:Ron@cpumms.com] Buck Its these two that I'm not sure of: s-msg to client 'move to port 999' c-msg to server 'understood' Do we code a "getservbyname" to get the port number that the server moved to? And what do we use to send the msg "understood"?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.