HP3000-L Archives

March 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Fri, 9 Mar 2001 12:18:15 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
I have not found the way to enable BROADCAST for udp sockets.
My server receives them when I send from my PC. But from a similar
MPE program nothing is received.

The paraphrased MPE program:
        sock = socket (...)
        bind ( sock.... )
        if ( !err && socktype == SOCK_DGRAM ){
                flag = 1;
                err = setsockopt ( sock, SOL_SOCKET, SO_BROADCAST, &flag,
sizeof(flag));
                printf ( "SoBroad=%d err %d\n", err, errno );
        }

When using a specific address, the UDP is received, but using 192.168.2.255,
nothing is received.  After setsockopt, the printf is SoBroad=0 err 0.
I also tried flag = -1.
Also tried setsockopt before the bind call.

Any ideas or leads?

> _____________________________________________________________
> Keven Miller   mailto:[log in to unmask]   http://www.exegesys.com
>
---------------------------------------------------
Plan now to attend the
eXegeSys eRP Users Conference 2001, Oct. 1-4, Downtown SLC.
Register today by visiting www.exegesys.com/erp2001/welcome.htm

ATOM RSS1 RSS2