]> code.citadel.org Git - citadel.git/commitdiff
got hello screen working
authorArt Cancro <ajc@citadel.org>
Mon, 22 Feb 1999 05:00:45 +0000 (05:00 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 22 Feb 1999 05:00:45 +0000 (05:00 +0000)
daphne/citclient.cpp
daphne/daphne

index abeab8eecbee2d4d8eb265fa6ac47f6b56275685..6f7c983d66590681a825a2af147458b8e6a2b6a1 100644 (file)
@@ -20,7 +20,6 @@ int CitClient::attach(const wxString& host, const wxString& port) {
        sock.SetNotify(0);
        sock.Connect(addr, TRUE);
        if (sock.IsConnected()) {
-               sock.WaitForRead(-1, 0);
                serv_gets(ServerReady);
                // FIX ... add check for not allowed to log in
                initialize_session();
@@ -72,6 +71,7 @@ void CitClient::serv_gets(wxString& buf) {
 
        buf.Empty();
        do {
+               while (sock.IsData()==FALSE) ;;
                sock.Read(charbuf, 1);
                if (isprint(charbuf[0])) buf.Append(charbuf[0], 1);
        } while(isprint(charbuf[0]));
index 3a9e70a00519efe49dab298c7d2f40ccc4cd8119..4946e761b60eff839078b75772fda4701634fa0b 100755 (executable)
Binary files a/daphne/daphne and b/daphne/daphne differ