From: Jacek S. <arn...@gm...> - 2007-11-04 17:55:45
|
itinerants wrote: > 1. I see there is some "if macintosh" type code, so I needed to turn off > SO_NOSIGPIPE... > BufferedSocket::accept > BufferedSocket::connect > Both needed > sock->setSocketOpt(SO_NOSIGPIPE, 1); > With the other socket options. > I suspect this is a mac only fix, but I know nothing about pcs, so I can't > be sure. linux has a similar issue/trick...win32 doesn't... > 2. DirectoryListing::loadFile need to be specified as throwing > FileException, SimpleXMLException - corrupt file lists, as well as the > routine itself, throw more than just "Exception". I'm not a c++ expert, but > my understanding of the "throw" thing in the function prototype is that if > you throw something other than what's listed, you get a runtime exception > and the prog exits if it isn't handled - can't see that it is being handled. > This certainly killed my version until I added the new specifiers. *Exception inherit from Exception so it should be safe...although I'm sure there are lots of places in the code with bad specifiers (msvc didn't enforce this so I never cared really much about it)...currently I use a gcc switch to disable the runtime exception =) > 6. Unless I've missed something, which is quite possible, users in the wait > list who aren't online are shown only with their CIDs? yeah, at some point some sort of caching of nicks (and other info) should be added... an open mac port would be welcome, to this end I've been striving to make the non-gui part more library like to maybe break it off in some distant future... /J |