X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FMainpage.dox;h=8f8f736b4de7eb88122e3ebba4cec9147ef44ab1;hb=983ae64545d03ca24e7c5cb2c9ed2749435844eb;hp=fe67997ee84c58c02a2e8af4bfc16fe8f686558b;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Socket/Mainpage.dox b/Socket/Mainpage.dox index fe67997..8f8f736 100644 --- a/Socket/Mainpage.dox +++ b/Socket/Mainpage.dox @@ -53,13 +53,17 @@ namespace senf { To make your code more flexible, you should not pass around your socket in this form. Most of your code will be using only a small subset of the ProtocolClientSocketHandle or - ProtocolServerSocketHandle API. If instead of using the + ProtocolServerSocketHandle API. + + If instead of using the fully specified handle type you use a more incomplete type, you - allow your code to be used with all socket which fulfill the - minimal requirements of your code. - - This works, by defining a special reduced policy or handle for - your code: + allow your code to be used with all sockets which fulfill the + minimal requirements of your code. These types are based on the + ClientSocketHandle and ServerSocketHandle templates which implement + the policy interface without providing the concrete protocol interface. + To use those templates you may define a special reduced policy or handle for + your code. By giving only an incomplete policy you thereby reduce the + interface to that required by your module: \code typedef ClientSocketHandle<