- dlinkDelete(&server_p->node, &server_conf_list);
- dlinkAddTail(server_p, &server_p->node, &server_conf_list);
+ rb_dlinkDelete(&server_p->node, &server_conf_list);
+ rb_dlinkAddTail(server_p, &server_p->node, &server_conf_list);
* immediately if there is an error, we were getting error messages
* in the wrong order. SO, we just print out the activated line,
* and let serv_connect() / serv_connect_callback() print an
* immediately if there is an error, we were getting error messages
* in the wrong order. SO, we just print out the activated line,
* and let serv_connect() / serv_connect_callback() print an
-burst_modes_TS5(struct Client *client_p, char *chname, dlink_list *list, char flag)
+burst_modes_TS5(struct Client *client_p, char *chname, rb_dlink_list *list, char flag)
- mlen = ircsprintf(buf, ":%s MODE %s +", me.name, chname);
+ mlen = rb_sprintf(buf, ":%s MODE %s +", me.name, chname);
me.id, (long) chptr->channelts, chptr->chname, flag);
t = buf + mlen;
me.id, (long) chptr->channelts, chptr->chname, flag);
t = buf + mlen;
struct membership *msptr;
hook_data_client hclientinfo;
hook_data_channel hchaninfo;
struct membership *msptr;
hook_data_client hclientinfo;
hook_data_channel hchaninfo;
- cur_len = mlen = ircsprintf(buf, ":%s SJOIN %ld %s %s :", me.name,
+ cur_len = mlen = rb_sprintf(buf, ":%s SJOIN %ld %s %s :", me.name,
(long) chptr->channelts, chptr->chname,
channel_modes(chptr, client_p));
(long) chptr->channelts, chptr->chname,
channel_modes(chptr, client_p));
- ircsprintf(t, "%s%s ", find_channel_status(msptr, 1),
+ rb_sprintf(t, "%s%s ", find_channel_status(msptr, 1),
struct membership *msptr;
hook_data_client hclientinfo;
hook_data_channel hchaninfo;
struct membership *msptr;
hook_data_client hclientinfo;
hook_data_channel hchaninfo;
- cur_len = mlen = ircsprintf(buf, ":%s SJOIN %ld %s %s :", me.id,
+ cur_len = mlen = rb_sprintf(buf, ":%s SJOIN %ld %s %s :", me.id,
(long) chptr->channelts, chptr->chname,
channel_modes(chptr, client_p));
(long) chptr->channelts, chptr->chname,
channel_modes(chptr, client_p));
- ircsprintf(t, "%s%s ", find_channel_status(msptr, 1),
+ rb_sprintf(t, "%s%s ", find_channel_status(msptr, 1),
{
/* remove trailing space */
*(t-1) = '\0';
}
sendto_one(client_p, "%s", buf);
{
/* remove trailing space */
*(t-1) = '\0';
}
sendto_one(client_p, "%s", buf);
burst_modes_TS6(client_p, chptr, &chptr->banlist, 'b');
if(IsCapable(client_p, CAP_EX) &&
burst_modes_TS6(client_p, chptr, &chptr->banlist, 'b');
if(IsCapable(client_p, CAP_EX) &&
burst_modes_TS6(client_p, chptr, &chptr->exceptlist, 'e');
if(IsCapable(client_p, CAP_IE) &&
burst_modes_TS6(client_p, chptr, &chptr->exceptlist, 'e');
if(IsCapable(client_p, CAP_IE) &&
burst_modes_TS6(client_p, chptr, &chptr->invexlist, 'I');
burst_modes_TS6(client_p, chptr, &chptr->invexlist, 'I');
burst_modes_TS6(client_p, chptr, &chptr->quietlist, 'q');
if(IsCapable(client_p, CAP_TB) && chptr->topic != NULL)
burst_modes_TS6(client_p, chptr, &chptr->quietlist, 'q');
if(IsCapable(client_p, CAP_TB) && chptr->topic != NULL)
report_error(SETBUF_ERROR_MSG,
get_server_name(client_p, SHOW_IP),
log_client_name(client_p, SHOW_IP), errno);
report_error(SETBUF_ERROR_MSG,
get_server_name(client_p, SHOW_IP),
log_client_name(client_p, SHOW_IP), errno);
- dlinkMoveNode(&client_p->localClient->tnode, &unknown_list, &serv_list);
- dlinkAddTailAlloc(client_p, &global_serv_list);
+ rb_dlinkMoveNode(&client_p->localClient->tnode, &unknown_list, &serv_list);
+ rb_dlinkAddTailAlloc(client_p, &global_serv_list);
/* Show the real host/IP to admins */
sendto_realops_snomask(SNO_GENERAL, L_ALL,
/* Show the real host/IP to admins */
sendto_realops_snomask(SNO_GENERAL, L_ALL,
- comm_note(client_p->localClient->F->fd, "slink data: %s", client_p->name);
- comm_note(client_p->localClient->ctrlfd, "slink ctrl: %s", client_p->name);
+ rb_note(client_p->localClient->F->fd, "slink data: %s", client_p->name);
+ rb_note(client_p->localClient->ctrlfd, "slink ctrl: %s", client_p->name);
- ircsnprintf(fd_str[0], sizeof(fd_str[0]), "%d", ctrl_fds[1]);
- ircsnprintf(fd_str[1], sizeof(fd_str[1]), "%d", data_fds[1]);
- ircsnprintf(fd_str[2], sizeof(fd_str[2]), "%d", server->localClient->F->fd);
+ rb_snprintf(fd_str[0], sizeof(fd_str[0]), "%d", ctrl_fds[1]);
+ rb_snprintf(fd_str[1], sizeof(fd_str[1]), "%d", data_fds[1]);
+ rb_snprintf(fd_str[2], sizeof(fd_str[2]), "%d", server->localClient->F->fd);
{
report_error(NONB_ERROR_MSG,
get_server_name(server, SHOW_IP),
{
report_error(NONB_ERROR_MSG,
get_server_name(server, SHOW_IP),
{
report_error(NONB_ERROR_MSG,
get_server_name(server, SHOW_IP),
{
report_error(NONB_ERROR_MSG,
get_server_name(server, SHOW_IP),
- comm_open(server->localClient->ctrlfd, FD_SOCKET, NULL);
- comm_open(server->localClient->F->fd, FD_SOCKET, NULL);
+ rb_open(server->localClient->ctrlfd, FD_SOCKET, NULL);
+ rb_open(server->localClient->F->fd, FD_SOCKET, NULL);
read_ctrl_packet(server->localClient->ctrlfd, server);
read_packet(server->localClient->F->fd, server);
read_ctrl_packet(server->localClient->ctrlfd, server);
read_packet(server->localClient->F->fd, server);
* This code initiates a connection to a server. It first checks to make
* sure the given server exists. If this is the case, it creates a socket,
* creates a client, saves the socket information in the client, and
* This code initiates a connection to a server. It first checks to make
* sure the given server exists. If this is the case, it creates a socket,
* creates a client, saves the socket information in the client, and
* completion of this goes through serv_completed_connection().
*
* We return 1 if the connection is attempted, since we don't know whether
* completion of this goes through serv_completed_connection().
*
* We return 1 if the connection is attempted, since we don't know whether
- if((fd = comm_socket(server_p->aftype, SOCK_STREAM, 0, NULL)) < 0)
+ if((fd = rb_socket(server_p->aftype, SOCK_STREAM, 0, NULL)) < 0)
{
/* Eek, failure to create the socket */
report_error("opening stream socket to %s: %s",
{
/* Eek, failure to create the socket */
report_error("opening stream socket to %s: %s",
strlcpy(client_p->name, server_p->name, sizeof(client_p->name));
strlcpy(client_p->host, server_p->host, sizeof(client_p->host));
strlcpy(client_p->sockhost, server_p->host, sizeof(client_p->sockhost));
strlcpy(client_p->name, server_p->name, sizeof(client_p->name));
strlcpy(client_p->host, server_p->host, sizeof(client_p->host));
strlcpy(client_p->sockhost, server_p->host, sizeof(client_p->sockhost));
{
report_error(SETBUF_ERROR_MSG,
get_server_name(client_p, SHOW_IP),
{
report_error(SETBUF_ERROR_MSG,
get_server_name(client_p, SHOW_IP),
server_p->port, NULL, 0, serv_connect_callback,
client_p, server_p->aftype,
ConfigFileEntry.connect_timeout);
server_p->port, NULL, 0, serv_connect_callback,
client_p, server_p->aftype,
ConfigFileEntry.connect_timeout);
server_p->port, (struct sockaddr *) &myipnum,
GET_SS_LEN(myipnum), serv_connect_callback, client_p,
myipnum.ss_family, ConfigFileEntry.connect_timeout);
server_p->port, (struct sockaddr *) &myipnum,
GET_SS_LEN(myipnum), serv_connect_callback, client_p,
myipnum.ss_family, ConfigFileEntry.connect_timeout);
/* First, make sure its a real client! */
s_assert(client_p != NULL);
/* First, make sure its a real client! */
s_assert(client_p != NULL);
ilog(L_SERVER, "Error connecting to %s[%s]: %s",
client_p->name, client_p->sockhost,
ilog(L_SERVER, "Error connecting to %s[%s]: %s",
client_p->name, client_p->sockhost,
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL,
"Error connecting to %s[%s]: %s (%s)",
client_p->name,
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL,
"Error connecting to %s[%s]: %s (%s)",
client_p->name,
ilog(L_SERVER, "Error connecting to %s[%s]: %s (%s)",
client_p->name, client_p->sockhost,
ilog(L_SERVER, "Error connecting to %s[%s]: %s (%s)",
client_p->name, client_p->sockhost,
- exit_client(client_p, client_p, &me, comm_errstr(status));
+ exit_client(client_p, client_p, &me, rb_errstr(status));