[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luasocket-2.0-beta2: problems sending data with an unconnected udp socket
- From: Joseph Stewart <joseph.stewart@...>
- Date: Mon, 29 Nov 2004 09:51:27 -0500
Ah, of course... you know this, but for others, here's the change:
change line 224 of wsocket.c in function sock_sendto() from:
int put = send(*ps, data, (int) count, 0);
int put = sendto(*ps, data, (int) count, 0, addr, len);
Thanks for catching this!
On Sat, 27 Nov 2004 03:06:51 -0500 (EST), Diego Nehab
> > Okay... I spent a few minutes tracing things, but need some guidance...
> > It looks like the send() (in wsocket.c::sock_sendto()) fails with a
> > WSAEWOULDBLOCK error. Anyone savvy to why this is happening?
> Turns out that, due to cut and paste, wsocket.c:sock_sendto was calling
> send instead of sendto. :)
Person who say it cannot be done should not interrupt person doing it.
-- Chinese Proverb