Lines Matching refs:args
48 const char *const *args, const char **error_r)
50 const char *cmd = args[0];
55 args++;
57 if (args[0] == NULL || args[1] == NULL) {
61 if (str_to_pid(args[0], &pid) < 0) {
65 connect_limit_connect(connect_limit, pid, args[1]);
67 if (args[0] == NULL || args[1] == NULL) {
71 if (str_to_pid(args[0], &pid) < 0) {
75 connect_limit_disconnect(connect_limit, pid, args[1]);
79 if (args[0] == NULL) {
87 if (str_to_pid(args[0], &pid) < 0) {
93 if (args[0] == NULL) {
101 value = connect_limit_lookup(connect_limit, args[0]);
105 if (args[0] == NULL) {
109 value = penalty_get(penalty, args[0], &stamp);
113 if (args[0] == NULL || args[1] == NULL || args[2] == NULL) {
117 if (str_to_uint(args[1], &checksum) < 0 ||
118 str_to_uint(args[2], &value) < 0 ||
124 penalty_inc(penalty, args[0], checksum, value);
126 if (args[0] == NULL || str_to_uint(args[0], &value) < 0) {
143 const char *line, *const *args, *error;
175 while ((args = anvil_connection_next_line(conn)) != NULL) {
176 if (args[0] != NULL) {
177 if (anvil_connection_request(conn, args, &error) < 0) {