Dnia Tue, 12 Aug 2008 07:21:15 -0700 (PDT), Tzury Bar Yochay napisa�(a):

> I changed as instructed:
> server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
> socket.getprotobyname('ip'))
>
> now I am getting:
>
> Traceback (most recent call last):
>   File "tcpsrv.py", line 15, in <module>
>     server.bind((host,port))
>   File "<string>", line 1, in bind
> socket.error: (19, 'No such device')

What's the value of host variable? AFAIR it should be the name
of the interface you want to bind to ('eth0', 'ppp0', whatever).


-- 
Regards,
Wojtek Walczak,
http://www.stud.umk.pl/~wojtekwa/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to