[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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);
to:
int put = sendto(*ps, data, (int) count, 0, addr, len);
Thanks for catching this!
-joe
On Sat, 27 Nov 2004 03:06:51 -0500 (EST), Diego Nehab
<diego@tecgraf.puc-rio.br> wrote:
> Hi,
>
> > 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. :)
>
> []s,
> Diego.
>
--
Person who say it cannot be done should not interrupt person doing it.
-- Chinese Proverb