pkgdesc='Database System'
arch=('i686' 'x86_64')
license=('BSD')
-pkgrel='26'
+pkgrel='27'
makedepends=('byacc')
-source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=185')
+source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=186')
sha256sums=('SKIP')
build() {
}
}
-char* readline_sock(int sock) { return connected ? modem_response() : NULL; }
+char* readline_sock(int sock) {
+ char* resp = modem_response();
+ if(__dw_strcaseequ(resp, "NO CARRIER")) {
+ free(resp);
+ printf("Disconnected\n");
+ connected = false;
+ }
+ return connected ? modem_response() : NULL;
+}
void writeline(int sock, const char* str) {
char* snd = __dw_strcat(str, "\r\n");
} else if(__dw_strcaseequ(buf, "BYE") || __dw_strcaseequ(buf, "QUIT")) {
writeline(sock, "QUIT:Bye");
disconnect(sock);
+ break;
} else if(__dw_strcaseequ(buf, "USER")) {
if(auth) {
} else {