> From: "Joel T. Geiger" <[EMAIL PROTECTED]>
>
> JTGeiger> I have the same problem with s_client on Win 95...I am
> JTGeiger> unable to type anything after the client has connected to
> JTGeiger> the server. I have also noticed a similar problem with
> JTGeiger> s_server: I connect to my Win 95 s_server from a Linux
> JTGeiger> version of s_client (since the Windows one does not work).
> JTGeiger> The client can write to the server, but the server does not
> JTGeiger> accept keyboard input to reply to the client. This problem
> JTGeiger> does not occur in either s_server or s_client under Linux;
> JTGeiger> both parts can send and receive without problems. I believe
> JTGeiger> the problem under Windows has to do with a select() call in
> JTGeiger> both s_server and s_client, but there could be another
> JTGeiger> problem somewhere. Anyone have an idea for a fix??
>
> I've now checked the docs that I happen to have access to (MSDN Library),
> and in the case of select() (which is used by s_client and s_server to
> detect keyboard input as well as network on Unix), the only thing that
> it applies on is sockets (according to said docs, I can't verify the
> veracity at this time), so it will never detect keyboard input. That
> has to be handled in some different way (sorry, I've no suggestion,
> I'm not a Winblows hacker). As said before, exactly the same problem
> exists on VMS (a little depending on the TCP/IP implementation,
> believe it or not...).
>
The way you handle this is by creating a loopback socket. The writing
end is a thread that reads the keyboard and writes all data to the
socket. The reading end is used in the select() call so that it
appears that the keyboard is a socket.
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025
http://www.kermit-project.org/k95.html * [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]