Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #84218
| References | <1421913649039-5083962.post@n6.nabble.com> |
|---|---|
| Date | 2015-01-22 21:13 +1100 |
| Subject | Re: Socket ICMP V6 error |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17966.1421921586.18130.python-list@python.org> (permalink) |
On Thu, Jan 22, 2015 at 7:00 PM, ermanolillo <ermanolillo@hotmail.com> wrote: > s = socket.socket(socket.AF_INET6, socket.SOCK_RAW, socket.IPPROTO_ICMPV6) > > However I recive the next error: > > > > File "server.py", line 16, in <module> > s.bind((HOST, 0)) > File "/usr/lib/python2.7/socket.py", line 224, in meth > return getattr(self._sock,name)(*args) > socket.error: [Errno 22] Invalid argument > > Could someone please help me?. > For a start, what HOST are you using? (Point of style: It's unusual to use an all-uppercase name like HOST for something non-constant - in this case, it's coming from keyboard input.) ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Socket ICMP V6 error Chris Angelico <rosuav@gmail.com> - 2015-01-22 21:13 +1100
csiph-web