updates
authorPekka Riikonen <priikone@silcnet.org>
Wed, 22 Nov 2000 21:16:22 +0000 (21:16 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 22 Nov 2000 21:16:22 +0000 (21:16 +0000)
CHANGES
doc/draft-riikonen-silc-pp-01.nroff
includes/serverincludes.h

diff --git a/CHANGES b/CHANGES
index 9003d86fc38cf5dee940ee92e6ad236e0d01e590..05bea0178d4e7c389caad4584eb167ac8259e38c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,37 @@
+Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
+
+       * 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 <priikone@poseidon.pspt.fi>
 
        * silc_server_replace_id now broadcasts the received replace ID
index e94eb9952b8bfb1cfa5af7c12eae32ac2513b3dd..3499f165d240478fc0630f4cdd2cb85bd8c7cbe5 100644 (file)
@@ -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.
index 988e83629866479a78a1db330ace4a2cdb486c64..aa2e8830bb8849274e629dfc1b71f962cbd4327b 100644 (file)
@@ -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"