Re: python broadcast socket

2005-06-29 Thread Grant Edwards
On 2005-06-29, Jp Calderone <[EMAIL PROTECTED]> wrote: > On Thu, 30 Jun 2005 00:13:45 +0200, Irmen de Jong <[EMAIL PROTECTED]> wrote: >>Grant Edwards wrote: >> >>> Under Linux, you need to be root to send a broadcase packet. >> >>I don't think this is true. >> > > I think you're right. I believe y

Re: python broadcast socket

2005-06-29 Thread Jp Calderone
On Thu, 30 Jun 2005 00:13:45 +0200, Irmen de Jong <[EMAIL PROTECTED]> wrote: >Grant Edwards wrote: > >> Under Linux, you need to be root to send a broadcase packet. > >I don't think this is true. > I think you're right. I believe you just need to set the broadcast SOL_SOCKET option. >>> import

Re: python broadcast socket

2005-06-29 Thread Irmen de Jong
Grant Edwards wrote: > Under Linux, you need to be root to send a broadcase packet. I don't think this is true. --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: python broadcast socket

2005-06-29 Thread Grant Edwards
On 2005-06-29, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > I'm sort of new to both Python and socket programming so I > appologize ahead of time if this is a dumb question. I have > found that the following code works on windows but on linux I > get an exception. > > import socket > s = sock

python broadcast socket

2005-06-29 Thread ronpro
I'm sort of new to both Python and socket programming so I appologize ahead of time if this is a dumb question. I have found that the following code works on windows but on linux I get an exception. import socket s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM ) s.connect( ( '', 1617 ) )