X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpacket.h;h=67cb82488224601602ef22a904584dc17d8ca393;hb=ae2b4edc607e28cebf953055c3f366ebf43232b6;hp=4eb8799e113d9a5db217dded07e5308848340179;hpb=ec9f8e2d0c90749848705f027a5a51077880545a;p=silc.git diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index 4eb8799e..67cb8248 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -455,6 +455,26 @@ void silc_packet_stream_set_router(SilcPacketStream stream); ***/ void silc_packet_stream_set_iv_included(SilcPacketStream stream); +/****f* silccore/SilcPacketAPI/silc_packet_stream_set_stream + * + * SYNOPSIS + * + * void silc_packet_stream_set_stream(SilcPacketStream packet_stream, + * SilcStream stream, + * SilcSchedule schedule); + * + * DESCRIPTION + * + * This function may be used to change the underlaying stream in the + * packet stream indicated by `packet_stream'. Note that the old + * stream will not be used after calling this function. The caller is + * responsible destroying the old stream. + * + ***/ +void silc_packet_stream_set_stream(SilcPacketStream packet_stream, + SilcStream stream, + SilcSchedule schedule); + /****f* silccore/SilcPacketAPI/silc_packet_stream_get_stream * * SYNOPSIS