Hi Gaby, I want to do something like this in spad:
import SocketReadNoBlock: (SingleInteger,ByteBuffer,SingleInteger) -> NonNegativeInteger from Foreign C readBytesNoBlock!(sock,b) == SocketReadNoBlock(sock,b::PrimitiveArray(Byte),capacity b) with the C function like so: int SocketReadNoBlock(openaxiom_socket sock, openaxiom_byte * buf, int size) { return recv(sock, buf, size, MSG_DONTWAIT); } however it's not working. Just the 'import' statement fails without the definition of 'readBytesNoBlock!' and I'm guessing it's because I don't know how to handle passing a pointer from spad to C. I've tried everything I can think of except copying what you did via sys-os.boot, but then I run into the problem I mentioned earlier. Arthur ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ open-axiom-devel mailing list open-axiom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-axiom-devel