Joseph M. Newcomer wrote: if (PeerInfo != "") return PeerInfo; // HLS FIX **** Try this: if(!PerrInfo.IsEmpty()) return PerrInfo; Note that it should be _T("") **** Too many letters to type to reach the same result. :) Plus, I like how it reads so that is what I use normally use in all languages I work with that offer Object based string with inherent operators
See below... On Thu, 13 May 2010 18:21:23 -0400, Hector Santos <sant9442@gmail.com> wrote: Ok, I downloaded and tested Joey's AsyncServer application. You're question is why you are seeing: ?.?.?.? [?] Closed Is that correct? The reason is that the socket is closed by the time the GetPeerPrefix() is called in DoClose() thus the socket peer binding information is already
Joseph M. Newcomer wrote: It also depends on what you are using for a protocol. Note that my example requires that each "message" start with a 4-byte binary length value which is the number of bytes in the packet, and a telnet message would not conform to that protocol, so it depends on how much of my code you took to use. joe I downloaded the zip, unzipped it and loaded the
On May 13, 2:23 pm, Hector Santos <sant9...@gmail.com> wrote: Stephen, It does work. That is why I gave you other host names and ports to try it. Its a simple "Dump Terminal" client application. Not sure what exactly you are looking for? How to make Joe's code work? Yeah, ok, I guess let me explain it this way. Assumption: The Newcomer server works. Meaning, I can send it
Stephen, It does work. That is why I gave you other host names and ports to try it. Its a simple "Dump Terminal" client application. Not sure what exactly you are looking for? How to make Joe's code work? I will have try its code to explain whats going on. What I am trying to emphasis to you, is that don't get stuck with one trying to figure out a server is not working for you. Try