
I'm working with Bernard Yue to implement a timeout socket patch. Our question: is it fair to assume that any OS that supports sockets also supports select? Or do have to have added checks? -- Mike -- Michael Gilfix mgilfix@eecs.tufts.edu For my gpg public key: http://www.eecs.tufts.edu/~mgilfix/contact.html

Oh yeah, and could a few brave souls volunteer to do some testing on MS and MAC? The patch is complete at this point but needs some testin'. -- Mike On Fri, Apr 26 @ 18:05, Michael Gilfix wrote:
-- Michael Gilfix mgilfix@eecs.tufts.edu For my gpg public key: http://www.eecs.tufts.edu/~mgilfix/contact.html

On Fri, 26 Apr 2002, Michael Gilfix wrote:
A pointer to the patch please. I'd like to see how the OS/2 EMX port fares... -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au | Snail: PO Box 370 andymac@pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia

Andrew MacIntyre wrote:
You can get the source from http://www.3captus.com/Downloads. BTW, does OS/2 support select() on sockets? Bernie
-- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next fact; that's science. Three: Be aware that you live in a malevolent Universe controlled by Murphy's Law, sometimes offset by Brewster's Factor; that's engineering. -- Robert A. Heinlein

On Sat, 27 Apr 2002, Bernard Yue wrote:
Thanks. The EMX runtime library supports select() on sockets; I don't believe that native OS/2 has select() at all, but can't confirm. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au | Snail: PO Box 370 andymac@pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia

Hmm, how do you poll sockets on OS/2 then? If there is some way, then maybe that hack should go into the select library (the select library treats sockets specially as polleable objects). Perhaps I should rework the patch so that use of select is avoided if either the import fails or the timeout is None. But (and maybe Guido will offer his opinion here), I'd like to hold out to see if it really is the case that some system doesn't support a select equivalent for sockets. -- Mike On Mon, Apr 29 @ 08:12, Andrew MacIntyre wrote:
Thanks. The EMX runtime library supports select() on sockets; I don't believe that native OS/2 has select() at all, but can't confirm.
-- Michael Gilfix mgilfix@eecs.tufts.edu For my gpg public key: http://www.eecs.tufts.edu/~mgilfix/contact.html

Michael Gilfix wrote:
Just found http://www.ia.amu.edu.pl/edm2/0401/socket3.html on the web. The documentation above mentioned select() support in IBM TCP/IP development toolkit for OS/2. So maybe OS/2 support select(). I remember TCP/IP support for OS/2 comes as an optional package of IBM LAN Manager client, back in 94-95. Am I correct, Andrew? Anyway, since you have access to OS/2, can you help us to dig in a bit? Bernie
-- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next fact; that's science. Three: Be aware that you live in a malevolent Universe controlled by Murphy's Law, sometimes offset by Brewster's Factor; that's engineering. -- Robert A. Heinlein

On Mon, 29 Apr 2002, Bernard Yue wrote:
I only have v4 (not v4.5 or eCS), but its still treated there as a "optional" package, certainly from the point of view of maintenance. I don't have VAC++ or a complete set of API docs either, but it wouldn't surprise me that select() is available in the socket library, exclusively for sockets. I use EMX, which has a select() that does what needs to be done to support sockets as well as files and (I think) pipes. I hope to have a look at your bits this weekend. Will let you know what transpires. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au | Snail: PO Box 370 andymac@pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia

Andrew MacIntyre wrote:
So does OS/2 now support TCP/IP by default?
[snip]
I hope to have a look at your bits this weekend. Will let you know what transpires.
I've just upload an alpha version of unit case for the timeout socket (http://www.3captus.com/Downloads/test_sockettimeout.py). Please give it a try. Bernie
-- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next fact; that's science. Three: Be aware that you live in a malevolent Universe controlled by Murphy's Law, sometimes offset by Brewster's Factor; that's engineering. -- Robert A. Heinlein

Oh yeah, and could a few brave souls volunteer to do some testing on MS and MAC? The patch is complete at this point but needs some testin'. -- Mike On Fri, Apr 26 @ 18:05, Michael Gilfix wrote:
-- Michael Gilfix mgilfix@eecs.tufts.edu For my gpg public key: http://www.eecs.tufts.edu/~mgilfix/contact.html

On Fri, 26 Apr 2002, Michael Gilfix wrote:
A pointer to the patch please. I'd like to see how the OS/2 EMX port fares... -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au | Snail: PO Box 370 andymac@pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia

Andrew MacIntyre wrote:
You can get the source from http://www.3captus.com/Downloads. BTW, does OS/2 support select() on sockets? Bernie
-- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next fact; that's science. Three: Be aware that you live in a malevolent Universe controlled by Murphy's Law, sometimes offset by Brewster's Factor; that's engineering. -- Robert A. Heinlein

On Sat, 27 Apr 2002, Bernard Yue wrote:
Thanks. The EMX runtime library supports select() on sockets; I don't believe that native OS/2 has select() at all, but can't confirm. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au | Snail: PO Box 370 andymac@pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia

Hmm, how do you poll sockets on OS/2 then? If there is some way, then maybe that hack should go into the select library (the select library treats sockets specially as polleable objects). Perhaps I should rework the patch so that use of select is avoided if either the import fails or the timeout is None. But (and maybe Guido will offer his opinion here), I'd like to hold out to see if it really is the case that some system doesn't support a select equivalent for sockets. -- Mike On Mon, Apr 29 @ 08:12, Andrew MacIntyre wrote:
Thanks. The EMX runtime library supports select() on sockets; I don't believe that native OS/2 has select() at all, but can't confirm.
-- Michael Gilfix mgilfix@eecs.tufts.edu For my gpg public key: http://www.eecs.tufts.edu/~mgilfix/contact.html

Michael Gilfix wrote:
Just found http://www.ia.amu.edu.pl/edm2/0401/socket3.html on the web. The documentation above mentioned select() support in IBM TCP/IP development toolkit for OS/2. So maybe OS/2 support select(). I remember TCP/IP support for OS/2 comes as an optional package of IBM LAN Manager client, back in 94-95. Am I correct, Andrew? Anyway, since you have access to OS/2, can you help us to dig in a bit? Bernie
-- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next fact; that's science. Three: Be aware that you live in a malevolent Universe controlled by Murphy's Law, sometimes offset by Brewster's Factor; that's engineering. -- Robert A. Heinlein

On Mon, 29 Apr 2002, Bernard Yue wrote:
I only have v4 (not v4.5 or eCS), but its still treated there as a "optional" package, certainly from the point of view of maintenance. I don't have VAC++ or a complete set of API docs either, but it wouldn't surprise me that select() is available in the socket library, exclusively for sockets. I use EMX, which has a select() that does what needs to be done to support sockets as well as files and (I think) pipes. I hope to have a look at your bits this weekend. Will let you know what transpires. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au | Snail: PO Box 370 andymac@pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia

Andrew MacIntyre wrote:
So does OS/2 now support TCP/IP by default?
[snip]
I hope to have a look at your bits this weekend. Will let you know what transpires.
I've just upload an alpha version of unit case for the timeout socket (http://www.3captus.com/Downloads/test_sockettimeout.py). Please give it a try. Bernie
-- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next fact; that's science. Three: Be aware that you live in a malevolent Universe controlled by Murphy's Law, sometimes offset by Brewster's Factor; that's engineering. -- Robert A. Heinlein
participants (3)
-
Andrew MacIntyre
-
Bernard Yue
-
Michael Gilfix