Hello all, Is there a preferred way to create TCP servers? KomServices and ConnectionQueue are options; there has been some discussion of the future of KomServices???
A nice trick is to use "ephmeral" ports, which is a fancy way of saying to pass zero for the listening port and let the OS assign a port. I have used that on Windows and it seems to work on Linux. TcpService does a lot to hide its listening socket; some small changes would allow it to use ephemeral ports. Any interest? They seem to work now, but there is no clean way to query the port that is ultimately chosen; the goal is to be able to so allocate a port and then send it to the other side for out of band communications. Perhaps related to my toying with port numbers (but I doubt that), I have had my older image crash a few times today. I created a TcpService on port zero, the listening socket gets a port and all seems reasonably well until I later inspect a few aspects of the TcpService, at which point the vm crashes. Bill _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
