Get the file descriptor of a socket matching the given type string from * the pool. Returns -1 if none is available or the file descriptor on * success. */
| 2074 | * the pool. Returns -1 if none is available or the file descriptor on |
| 2075 | * success. */ |
| 2076 | int cdb2_socket_pool_get(const char *typestr, int dbnum, int *port) |
| 2077 | { |
| 2078 | int rc = cdb2_socket_pool_get_ll(typestr, dbnum, port); |
| 2079 | if (log_calls) |
| 2080 | fprintf(stderr, "%s(%s,%d): fd=%d\n", __func__, typestr, dbnum, rc); |
| 2081 | return rc; |
| 2082 | } |
| 2083 | |
| 2084 | void cdb2_socket_pool_donate_ext(const char *typestr, int fd, int ttl, |
| 2085 | int dbnum) |
no test coverage detected