nklein / userial

Library for binary serialization/unserialization
http://nklein.com/software/unet/userial/
MIT License
18 stars 0 forks source link

error with usocket datagram socket sending userial buffers on SBCL 1.2.1 Windows 8 #16

Closed ezrarush closed 9 years ago

ezrarush commented 9 years ago

I apologize if this is actually an issue with usocket.

code can be found here: https://gist.github.com/ezrarush/01741135c7141621210c

Using userial with usocket's datagram socket causes an intermittent error.

Socket error in "sendto": 10014 (The system detected an invalid pointer address in attempting to use a pointer argument in a call.) [Condition of type SB-BSD-SOCKETS:SOCKET-ERROR]

Using an array instead of userial's buffer does not seem to error.

Edit: solved - using the proper size with usocket:socket-send removes my issue. I wanted to always send the same size datagram but now I know I will have to manually adjust the size.