<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
I have recently started using C API of the spread toolkit.<br>
<br>
I was wondering why functions like SP_receive and SP_multicast take
mess as char * ??<br>
They could have simply used a void * as the size of message has to be
provided anyway.<br>
Since it is possible to send text and binary messages, it becomes a
casting mess for sending binary types. If you do not cast, the gcc
compiler is not generating any error, but a warning: "warning: passing
arg 6 of `SP_multicast' from incompatible pointer type" is generated.<br>
<br>
Just a thought... may be in the next version, the data type for the
message can be a void * rather than a char *.<br>
<br>
Thanks,<br>
Padam<br>
</font></font>
</body>
</html>