]> Nishi Git Mirror - rbuild.git/commitdiff
send messages
authorNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 21:09:56 +0000 (21:09 +0000)
committerNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 21:09:56 +0000 (21:09 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@15 c68d3453-7f82-0740-9748-1d72386a946b

Server/server.c

index e838fbc191ec91c41d5cec76abbfeeebd390d7c7..8353c6604374bf2e42d47cae40144ce0df521679 100644 (file)
@@ -189,6 +189,7 @@ void rbs_server_handler(void* sockptr) {
                                        break;
                                }
                                section = cm_strdup(arg);
+                               rbs_write(sock, "SUCCESS\n", 8);
                        } else if(strcmp(cmd, "USER") == 0 && arg != NULL) {
                                if(section == NULL || user != NULL) {
                                        rbs_write(sock, "FAIL\n", 5);
@@ -196,6 +197,7 @@ void rbs_server_handler(void* sockptr) {
                                        break;
                                }
                                user = cm_strdup(arg);
+                               rbs_write(sock, "SUCCESS\n", 8);
                        } else if(strcmp(cmd, "PASS") == 0 && arg != NULL) {
                                if(user == NULL || pass != NULL) {
                                        rbs_write(sock, "FAIL\n", 5);
@@ -222,6 +224,7 @@ void rbs_server_handler(void* sockptr) {
                                        break;
                                }
                        } else {
+                               rbs_write(sock, "FAIL\n", 5);
                                free(line);
                                break;
                        }