SOCK_RAW with python socket library?

Tim Lavoie tim.lavoie at mts.net
Mon Jun 19 15:08:03 EDT 2000


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')

I understand the "operation not permitted" if I try it as a non-root user,
but why this? Is SOCK_RAW not supported yet? The docs mention that it isn't
generally useful, but it is quite specifically useful for say, ping.


  Thanks,
    Tim Lavoie

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



More information about the Python-list mailing list