Renamed a function.
This commit is contained in:
parent
8b90f79bac
commit
b1ab64242e
@ -216,7 +216,7 @@ void net_on_write(int fd, short ev, void *arg)
|
||||
#endif
|
||||
if (hub_sendq_get_bytes(user->net.send_queue))
|
||||
{
|
||||
user_want_write(user);
|
||||
user_net_io_want_write(user);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ int route_to_user(struct hub_info* hub, struct user* user, struct adc_message* m
|
||||
}
|
||||
else
|
||||
{
|
||||
user_want_write(user);
|
||||
user_net_io_want_write(user);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
@ -331,18 +331,18 @@ int user_is_registered(struct user* user)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void user_want_write(struct user* user)
|
||||
void user_net_io_want_write(struct user* user)
|
||||
{
|
||||
hub_log(log_trace, "user_want_write: %s", user_log_str(user));
|
||||
hub_log(log_trace, "user_net_io_want_write: %s", user_log_str(user));
|
||||
if (user && user->net.ev_write)
|
||||
{
|
||||
event_add(user->net.ev_write, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void user_want_read(struct user* user, int timeout_s)
|
||||
void user_net_io_want_read(struct user* user, int timeout_s)
|
||||
{
|
||||
hub_log(log_trace, "user_want_read: %s", user_log_str(user));
|
||||
hub_log(log_trace, "user_net_io_want_read: %s", user_log_str(user));
|
||||
|
||||
struct timeval timeout = { timeout_s, 0 };
|
||||
if (user && user->net.ev_read)
|
||||
|
@ -276,12 +276,12 @@ extern void user_clear_feature_cast_support(struct user* u);
|
||||
/**
|
||||
* Mark the user with a want-write flag, meaning it should poll for writability.
|
||||
*/
|
||||
extern void user_want_write(struct user* user);
|
||||
extern void user_net_io_want_write(struct user* user);
|
||||
|
||||
/**
|
||||
* Mark the user with a want read flag, meaning it should poll for readability.
|
||||
*/
|
||||
extern void user_want_read(struct user* user, int timeout_s);
|
||||
extern void user_net_io_want_read(struct user* user, int timeout_s);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user