On 24 Feb 2004, at 16:16, Wim Oudshoorn wrote:


Richard Frith-Macdonald <[EMAIL PROTECTED]> writes:


Does windows support socketpair()?  Perhaps we could use a
socketpair to create connected sockets  instead of a pipe?

As far as I can tell NO.
(It is not in the winsock2.h file)

A pity.


Another idea ... clumsy, but should work I think ...

create a tcp/ip socket (A) on address 127.0.0.1 with no port specified.
ask it for its port number.
set it listening.
create a new tcp/ip socket (B)
in a separate thread, connect from (B) to (A) producing a socket (C) in the main thread.
close socket (A)
use sockets (B) and (C)




_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to