From: Pekka Riikonen Date: Wed, 22 Nov 2000 21:16:22 +0000 (+0000) Subject: updates X-Git-Tag: SILC.0.1~315 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=f5f38ff1aa82495d1fe133ab1155cf7f2e01909b;p=silc.git updates --- diff --git a/CHANGES b/CHANGES index 9003d86f..05bea017 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,37 @@ +Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen + + * Splitted server.[ch] finally. Created now packet_send.[ch] and + packet_receive.[ch] to separate packet sending and receiving + routines. The server.[ch] now includes everything else including + actual packet processing (writing and reading data) and other + server issues. + + Renamed silc_server_private_message_send_internal to + silc_server_send_private_message. The routine is still though + used only to relay private messages as server does not send + private messages itself. + + Renamed silc_server_new_channel to silc_server_create_new_channel + and added new function sicl_server_new_channel that handles the + incoming New Channel packet. Added also new sending function + silc_server_send_new_channel to send New Channel Payload. + + * Added new function silc_server_notify to process incoming notify + packet to the server/router. Server may then relay the notify + to clients if needed. + + * Added new function silc_server_new_channel_user to process incoming + New Channel User packet. Router will redistribute the packet and + send JOIN notify to its local clients and locally connected servers + if needed. Normal server will send JOIN notify to its local client + on same channel when received this packet. Added also corresponding + sending function silc_server_send_new_channel_user to sent the + payload. + + * Added boolean route argument to send_notif_to_channel and + packet_send_to_channel functions to attempt to route the packet + if it is TRUE and send only locally if it is FALSE. + Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen * silc_server_replace_id now broadcasts the received replace ID diff --git a/doc/draft-riikonen-silc-pp-01.nroff b/doc/draft-riikonen-silc-pp-01.nroff index e94eb995..3499f165 100644 --- a/doc/draft-riikonen-silc-pp-01.nroff +++ b/doc/draft-riikonen-silc-pp-01.nroff @@ -1702,6 +1702,10 @@ create their own ID's. Server registers itself to the network by sending SILC_PACKET_NEW_SERVER to the router it connected to. The case is same when router connects to another router. +However, this payload is not and must not be used to send information +about new channels. New channels are always distributed by sending the +dedicated SILC_PACKET_NEW_CHANNEL packet. + Hence, this payload is very important and used every time when some new entity is registered to the SILC network. Client never sends this payload. Both client and server (and router) may receive this payload. @@ -2059,10 +2063,9 @@ o New ID Data (variable length) - The actual new ID data. 2.3.25 Remove ID Payload Remove ID payload is used to remove ID from SILC network. This is used -for example when client exits SILC network. The server must in this -case send this payload to notify that this ID is not valid anymore. -After this has been send the old ID must not be used anymore. Client -must not send this payload. +when client, server, router or channel is removed from the SILC network. +After this payload has been send the old ID must not be used anymore. +Client must not send or receive this payload. The packet uses generic ID Payload as New ID Payload. See section 2.3.2.1 for generic ID Payload. diff --git a/includes/serverincludes.h b/includes/serverincludes.h index 988e8362..aa2e8830 100644 --- a/includes/serverincludes.h +++ b/includes/serverincludes.h @@ -29,6 +29,8 @@ #include "serverid.h" #include "serverconfig.h" #include "server.h" +#include "packet_send.h" +#include "packet_receive.h" #include "route.h" #include "protocol.h" #include "command.h"