socket code

Grant Edwards grante at visi.com
Fri Jul 8 12:08:57 EDT 2005


On 2005-07-08, <ronpro at cox.net> <ronpro at cox.net> wrote:
> Hello,
>
> I'm trying to create a broadcast socket in some portable code (windows XP & mandrake linux).  When I run the following lines through idle:
>
> import socket
> s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
> s.connect( ('<broadcast>', 17100) )
>
> On windows, connect() returns and I have a broadcast socket to
> which I can write.  One LINUX connect() just tells me
> 'Permission denied'.
>
> Does anybody know why?  Any thoughts on how I can get around
> this?  I have to transmitt data to an old system.  The system
> only reads broadcast data on port 17100.

Didn't we just answer this question for you two weeks ago?

http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/6447ef29cf613660/dcdc52690aa562e1

-- 
Grant Edwards                   grante             Yow!  I'm RELIGIOUS!! I
                                  at               love a man with a
                               visi.com            HAIRPIECE!! Equip me with
                                                   MISSILES!!



More information about the Python-list mailing list