insert tecs_client into archive + little update

This commit is contained in:
cvs
2000-05-29 09:05:05 +00:00
parent 1a56fbc568
commit a89b3208d6
12 changed files with 1433 additions and 165 deletions

View File

@@ -92,6 +92,18 @@ int CocSendMagic(CocConn *conn, char *magic) {
/*-------------------------------------------------------------------------*/
int CocCheck(CocConn *conn) {
if (conn->fd<0) return(1);
ERR_SI(send(conn->fd, "quit", 5, 0));
ERR_I(CocRecv(conn->fd, conn->resbuf));
return(0);
OnError:
if (ErrCode==ECONNRESET || ErrCode==EPIPE) return(1);
return(-1);
}
/*-------------------------------------------------------------------------*/
int CocTryCmd(CocConn *conn)
{ if (conn->fd<0) {
ERR_I(CocOpen(conn));