Imported Upstream version 2.7.4
This commit is contained in:
parent
fd413a3168
commit
c9cb2187ee
290 changed files with 7473 additions and 2607 deletions
|
|
@ -366,6 +366,7 @@ LD = @LD@
|
|||
LDFLAGS = @LDFLAGS@
|
||||
LIBAVAHI_CFLAGS = @LIBAVAHI_CFLAGS@
|
||||
LIBAVAHI_LIBS = @LIBAVAHI_LIBS@
|
||||
LIBDIR = @LIBDIR@
|
||||
LIBGD_CFLAGS = @LIBGD_CFLAGS@
|
||||
LIBGD_LDFLAGS = @LIBGD_LDFLAGS@
|
||||
LIBIPMI_CFLAGS = @LIBIPMI_CFLAGS@
|
||||
|
|
|
|||
|
|
@ -374,6 +374,11 @@ std::string Socket::read()throw(nut::IOException)
|
|||
|
||||
// Read new buffer
|
||||
size_t sz = read(&buff, 256);
|
||||
if(sz==0)
|
||||
{
|
||||
disconnect();
|
||||
throw nut::IOException("Server closed connection unexpectedly");
|
||||
}
|
||||
_buffer.assign(buff, sz);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -366,6 +366,11 @@ static void do_type(const char *varname)
|
|||
|
||||
}
|
||||
|
||||
if (!strcasecmp(answer[i], "NUMBER")) {
|
||||
printf("Type: NUMBER\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* ignore this one */
|
||||
if (!strcasecmp(answer[i], "RW")) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue