Renamed a function.

This commit is contained in:
Jan Vidar Krey 2009-05-28 01:48:31 +02:00
parent 8b90f79bac
commit b1ab64242e
4 changed files with 8 additions and 8 deletions

View File

@ -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);
}
}

View File

@ -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;

View File

@ -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)

View File

@ -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);