0 (stdout), Now CxClSend() should do nothing if not connected.
$Log$
+Revision 1.5 2001/02/19 14:50:58 brian
+* Fixed problem in which unconnected clients send messages to file descriptor
+0 (stdout), Now CxClSend() should do nothing if not connected.
+
Revision 1.4 2001/02/14 03:48:51 brian
* Added the NOTES file, containing some thoughts about the ASYN protocol,
eloquently elaborated upon by AJC (Ig).
Revision 1.2 2001/02/07 22:41:51 brian
* Updated ChangeLog to conform to Citadel/UX standards (kinda) :)
-
}
/**
- ** CxClStat(): Send a string to the server.
+ ** CxClStat(): Return connection status.
**/
int CxClStat() {
int retval,nbytes;
char *ss;
+ /**
+ ** Don't try to do anything if we are not connected.
+ **/
+ if(!CxClStat()) return;
+
DPF((DFA,"SEND: \"%s\"", s));
ss = (char *)CxMalloc(strlen(s)+2);
char substr[4];
int i, tmp;
- if(!CxClStat()) {
- return(NULL);
- }
+ /**
+ ** If we are not connected, do nothing.
+ **/
+ if(!CxClStat()) return(NULL);
/**
** At this point, we should wait for the semaphore to be cleared.