[Nottingham] Eager Queues and GNU Hurd.
Jason Cozens
jason.cozens at computer.org
Wed Jan 24 20:12:27 GMT 2007
On Wed, 2007-01-24 at 19:20 +0000, Jason Cozens wrote:
> .
>
> I think my problem is more to do with BSD socket programming or I hope
> it is anyway!
>
The problem was I wasn't creating the socket address correctly.
I was using:
_socketAddrIn.sin_addr.s_addr = (int) "192.168.0.11";
instead of
_socketAddrIn.sin_addr.s_addr = inet_addr ("192.168.0.11");
I put the cast to int in to fix a compiler warning, only it was the
wrong fix.
The working example is at:
http://eqp.svn.sourceforge.net/viewvc/eqp/trunk/udp/udpbindings.c?revision=3&view=markup
Sorry if my c coding isn't up to much yet but it's a while (>20 years)
since I did any real c.
Cheers,
Jason.
More information about the Nottingham
mailing list