Seite 1 von 1

Permission denied bei udp broadcast

Verfasst: Montag 8. September 2008, 22:26
von Costi
wieso krieg ich ein "Permission denied"??
Ich verstehe die welt nicht mehr!

Code: Alles auswählen

$ sudo ipython
[sudo] password for myuser: 
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
Type "copyright", "credits" or "license" for more information.

IPython 0.8.1 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from socket import *

In [2]: s = socket(AF_INET,SOCK_DGRAM)

In [3]: s.sendto('blabla', ('255.255.255.255', 6668))
---------------------------------------------------------------------------
<class 'socket.error'>                    Traceback (most recent call last)

/home/kirsch/<ipython console> in <module>()

<class 'socket.error'>: (13, 'Permission denied')

Verfasst: Montag 8. September 2008, 22:29
von Costi
ich war zu voreillig:
da fehlt noch ein

Code: Alles auswählen

s.setsockopt(SOL_SOCKET, SO_BROADCAST, True)
gure nacht :lol: