X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fpacket_send.h;h=b055904d42d9461d76838614d321705aac53f45b;hp=944284cf1d577f33b41c4a66011952185780d778;hb=e5d8d3db6caa344b3d419b884556c21b15e7d123;hpb=fb8dbc2d9cd7ff5d197654f873ac18aa6ef9c5e3 diff --git a/apps/silcd/packet_send.h b/apps/silcd/packet_send.h index 944284cf..b055904d 100644 --- a/apps/silcd/packet_send.h +++ b/apps/silcd/packet_send.h @@ -25,14 +25,14 @@ int silc_server_packet_send_real(SilcServer server, SilcSocketConnection sock, - int force_send); + bool force_send); void silc_server_packet_send(SilcServer server, SilcSocketConnection sock, SilcPacketType type, SilcPacketFlags flags, unsigned char *data, uint32 data_len, - int force_send); + bool force_send); void silc_server_packet_send_dest(SilcServer server, SilcSocketConnection sock, SilcPacketType type, @@ -41,7 +41,7 @@ void silc_server_packet_send_dest(SilcServer server, SilcIdType dst_id_type, unsigned char *data, uint32 data_len, - int force_send); + bool force_send); void silc_server_packet_send_srcdest(SilcServer server, SilcSocketConnection sock, SilcPacketType type, @@ -52,7 +52,7 @@ void silc_server_packet_send_srcdest(SilcServer server, SilcIdType dst_id_type, unsigned char *data, uint32 data_len, - int force_send); + bool force_send); void silc_server_packet_broadcast(SilcServer server, SilcSocketConnection sock, SilcPacketContext *packet); @@ -63,10 +63,10 @@ void silc_server_packet_send_to_channel(SilcServer server, SilcSocketConnection sender, SilcChannelEntry channel, SilcPacketType type, - unsigned char route, + bool route, unsigned char *data, uint32 data_len, - int force_send); + bool force_send); void silc_server_packet_relay_to_channel(SilcServer server, SilcSocketConnection sender_sock, SilcChannelEntry channel, @@ -75,14 +75,14 @@ void silc_server_packet_relay_to_channel(SilcServer server, void *sender_entry, unsigned char *data, uint32 data_len, - int force_send); + bool force_send); void silc_server_packet_send_local_channel(SilcServer server, SilcChannelEntry channel, SilcPacketType type, SilcPacketFlags flags, unsigned char *data, uint32 data_len, - int force_send); + bool force_send); void silc_server_send_private_message(SilcServer server, SilcSocketConnection dst_sock, SilcCipher cipher, @@ -108,33 +108,28 @@ void silc_server_send_notify_channel_change(SilcServer server, SilcSocketConnection sock, int broadcast, SilcChannelID *old_id, - SilcChannelID *new_id, - uint32 id_len); + SilcChannelID *new_id); void silc_server_send_notify_nick_change(SilcServer server, SilcSocketConnection sock, int broadcast, SilcClientID *old_id, - SilcClientID *new_id, - uint32 id_len); + SilcClientID *new_id); void silc_server_send_notify_join(SilcServer server, SilcSocketConnection sock, int broadcast, SilcChannelEntry channel, - SilcClientID *client_id, - uint32 client_id_len); + SilcClientID *client_id); void silc_server_send_notify_leave(SilcServer server, SilcSocketConnection sock, int broadcast, SilcChannelEntry channel, - SilcClientID *client_id, - uint32 client_id_len); + SilcClientID *client_id); void silc_server_send_notify_cmode(SilcServer server, SilcSocketConnection sock, int broadcast, SilcChannelEntry channel, uint32 mode_mask, void *id, SilcIdType id_type, - uint32 id_len, char *cipher, char *hmac); void silc_server_send_notify_cumode(SilcServer server, SilcSocketConnection sock, @@ -142,40 +137,33 @@ void silc_server_send_notify_cumode(SilcServer server, SilcChannelEntry channel, uint32 mode_mask, void *id, SilcIdType id_type, - uint32 id_len, - SilcClientID *target, - uint32 target_len); + SilcClientID *target); void silc_server_send_notify_signoff(SilcServer server, SilcSocketConnection sock, int broadcast, SilcClientID *client_id, - uint32 client_id_len, char *message); void silc_server_send_notify_topic_set(SilcServer server, SilcSocketConnection sock, int broadcast, SilcChannelEntry channel, SilcClientID *client_id, - uint32 client_id_len, char *topic); void silc_server_send_notify_kicked(SilcServer server, SilcSocketConnection sock, int broadcast, SilcChannelEntry channel, SilcClientID *client_id, - uint32 client_id_len, char *comment); void silc_server_send_notify_killed(SilcServer server, SilcSocketConnection sock, int broadcast, SilcClientID *client_id, - uint32 client_id_len, char *comment); void silc_server_send_notify_umode(SilcServer server, SilcSocketConnection sock, int broadcast, SilcClientID *client_id, - uint32 client_id_len, uint32 mode_mask); void silc_server_send_notify_ban(SilcServer server, SilcSocketConnection sock, @@ -187,7 +175,6 @@ void silc_server_send_notify_invite(SilcServer server, int broadcast, SilcChannelEntry channel, SilcClientID *client_id, - uint32 client_id_len, char *add, char *del); void silc_server_send_notify_dest(SilcServer server, SilcSocketConnection sock, @@ -226,6 +213,7 @@ void silc_server_send_channel_key(SilcServer server, void silc_server_send_command(SilcServer server, SilcSocketConnection sock, SilcCommand command, + uint16 ident, uint32 argc, ...); void silc_server_send_heartbeat(SilcServer server, SilcSocketConnection sock); @@ -234,10 +222,12 @@ void silc_server_relay_packet(SilcServer server, SilcCipher cipher, SilcHmac hmac, SilcPacketContext *packet, - int force_send); + bool force_send); void silc_server_send_connection_auth_request(SilcServer server, SilcSocketConnection sock, uint16 conn_type, SilcAuthMethod auth_meth); +void silc_server_packet_queue_purge(SilcServer server, + SilcSocketConnection sock); #endif