summaryrefslogtreecommitdiff
path: root/src/server_eval.c
diff options
context:
space:
mode:
authorJakub Sławiński2005-08-05 21:45:31 +0200
committerJoshua Judson Rosen2014-07-17 21:14:59 +0200
commit43e8714797d40bcf63efab428dcd25f9caf1d52b (patch)
tree796974a873a97f2a44f872f3dd3587508e35aa64 /src/server_eval.c
parentv0.7.1 (diff)
downloadapf-43e8714797d40bcf63efab428dcd25f9caf1d52b.tar.gz
v0.7.2
- Added: http proxy basic authorization - Fixed: logging initialization after some value checking - Fixed: auto-reconnect failure when --nossl option is set - Added: auto-reconnect when afserver is not reachable on start - Added: auto-reconnect after normal afserver quit - Added: per user statistics: idle time, amount of downloaded/uploaded bytes and current download/upload rate - Added: support for https proxies - Added: possibility to bind sockets on different interfaces - Fixed: receiving incomplete headers from afclient - Fixed: close user connections by afclient
Diffstat (limited to 'src/server_eval.c')
-rw-r--r--src/server_eval.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server_eval.c b/src/server_eval.c
index 373a310..4996621 100644
--- a/src/server_eval.c
+++ b/src/server_eval.c
@@ -25,8 +25,8 @@
int
eval_numofcon(RealmT* ptr, int client, int numofcon)
{
- if ((numofcon >= 0) && (numofcon < ptr->clitable[client].usernum)) {
- numofcon = ptr->clitable[client].users[numofcon];
+ if ((numofcon >= 0) && (numofcon < ConnectClient_get_limit(ptr->clitable[client]))) {
+ numofcon = ConnectClient_get_users(ptr->clitable[client])[numofcon];
}
else {
numofcon = -1;
@@ -35,11 +35,11 @@ eval_numofcon(RealmT* ptr, int client, int numofcon)
}
int
-eval_usernum(ConnectclientT* ptr, int usernum)
+eval_usernum(ConnectClient* ptr, int usernum)
{
int i;
- for (i = 0; i < ptr->usernum; ++i) {
- if (ptr->users[i] == usernum)
+ for (i = 0; i < ConnectClient_get_limit(ptr); ++i) {
+ if (ConnectClient_get_users(ptr)[i] == usernum)
return i;
}
return -1;