X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcsocketstream_i.h;h=50385df3bddd38233031412e16383475bf78998d;hb=9905799a86c606304fd7df2cd401de1740a272a1;hp=7a4998ccfbcf8488224b5c9e4ba592e1d6e60328;hpb=0f0340b9fbce9704cc7171f8f0104ce9103d2de6;p=silc.git diff --git a/lib/silcutil/silcsocketstream_i.h b/lib/silcutil/silcsocketstream_i.h index 7a4998cc..50385df3 100644 --- a/lib/silcutil/silcsocketstream_i.h +++ b/lib/silcutil/silcsocketstream_i.h @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2005 Pekka Riikonen + Copyright (C) 2005 - 2006 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,7 +44,7 @@ typedef struct SilcSocketQosStruct { struct SilcSocketStreamStruct { const SilcStreamOps *ops; SilcSchedule schedule; - int sock; + SilcSocket sock; char *hostname; char *ip; SilcUInt16 port; @@ -52,6 +52,14 @@ struct SilcSocketStreamStruct { SilcSocketQos qos; SilcStreamNotifier notifier; void *notifier_context; + unsigned int ipv6 : 1; /* UDP IPv6 */ + unsigned int connected : 1; /* UDP connected state */ }; +#define SILC_IS_SOCKET_STREAM(s) (s->ops == &silc_socket_stream_ops) +#define SILC_IS_SOCKET_STREAM_UDP(s) (s->ops == &silc_socket_udp_stream_ops) + +extern const SilcStreamOps silc_socket_stream_ops; +extern const SilcStreamOps silc_socket_udp_stream_ops; + #endif /* SILCSOCKETSTREAM_I_H */