insert tecs_client into archive + little update
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user