X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilctypes.h;h=7500b1fb22d71a403d09f99267f47ed58d3bfe2e;hp=851bdd011979f29d6925842344390829235efe8f;hb=9905799a86c606304fd7df2cd401de1740a272a1;hpb=f3b43606c546a86a43b283b46464972296e1e271 diff --git a/lib/silcutil/silctypes.h b/lib/silcutil/silctypes.h index 851bdd01..7500b1fb 100644 --- a/lib/silcutil/silctypes.h +++ b/lib/silcutil/silctypes.h @@ -275,6 +275,28 @@ typedef SilcInt32 SilcInt64; typedef SilcUInt32 * void *; #endif +/****d* silcutil/SILCTypes/SilcSocket + * + * NAME + * + * SilcSocket + * + * DESCRIPTION + * + * Platform specific socket. On POSIX compliant systems this is simply + * an integer, representing the socket. On other systems it is platform + * specific socket context. Access it only through routines that can + * handle SilcSocket types, unless you know what you are doing. + * + * SOURCE + */ +#if defined(SILC_UNIX) || defined(SILC_WIN32) +typedef int SilcSocket; +#elif defined(SILC_SYMBIAN) +typedef void * SilcSocket; +#endif +/***/ + /* Macros */ #define SILC_GET_WORD(cp) ((SilcUInt32)(SilcUInt8)(cp)[0]) << 24 \