Why is a socket a void*, instead of

        struct zmq_socket_type_t* // incomplete type *

? 

The above helps to prevent type errors by preventing conversions from
and to any pointer type other than void* (in C) (at least without a cast).
In C++ you get extra safety (C++ doesn't allow conversion from a void*).

--
john skaller
[email protected]




_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to