def bind(self,address):
self.sock.bind((address,0))
#self.sock.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
return IcmpSocket
python类SIO_RCVALL的实例源码
def bind(self,address):
self.sock.bind((address,0))
#self.sock.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
return IcmpSocket