SOCK_RAW with python socket library?

Tim Lavoie tim.lavoie at mts.net
Tue Jun 20 10:15:00 EDT 2000


In article <slrn8ksreq.i2.tim.lavoie at goibniu.beyondtv.net>, Tim Lavoie wrote:
>
>Hello,
>
>I've been tinkering with some socket programming lately, basically trying
>out ideas I get from browsing W. Richard Stevens' "UNIX Network
>Programming". Anyway, I'd like to play in Python too, so I'm using the
>socket library functions. When I try to use SOCK_RAW though, I get:
>
>   socket.error: (93, 'Protocol not supported')

Uuuuurrrrrrghh. Found it, looking at Jeremy's ping code, mentioned by
Jeff... If I add the third, protocol argument, all is well. 

Sorry, must RTFM. MUST....  GET.... COFFFEEEEE......


-- 
One doesn't have a sense of humor.  It has you.
                -- Larry Gelbart



More information about the Python-list mailing list