Python _socket.gethostbyaddr() Examples

The following are 6 code examples of _socket.gethostbyaddr(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module _socket , or try the search function .
Example #1
Source File: test__socket.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def test_gethostbyaddr(self):
        '''Tests _socket.gethostbyaddr'''
        _socket.gethostbyaddr("localhost")
        _socket.gethostbyaddr("127.0.0.1") 
Example #2
Source File: resolver_thread.py    From satori with Apache License 2.0 5 votes vote down vote up
def gethostbyaddr(self, *args, **kwargs):
        return self.pool.apply(_socket.gethostbyaddr, args, kwargs) 
Example #3
Source File: test__socket.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def test_gethostbyaddr(self):
        '''Tests _socket.gethostbyaddr'''
        _socket.gethostbyaddr("localhost")
        _socket.gethostbyaddr("127.0.0.1") 
Example #4
Source File: resolver_thread.py    From PhonePi_SampleServer with MIT License 5 votes vote down vote up
def gethostbyaddr(self, *args, **kwargs):
        return self.pool.apply(_socket.gethostbyaddr, args, kwargs) 
Example #5
Source File: resolver_thread.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def gethostbyaddr(self, *args, **kwargs):
        return self.pool.apply(_socket.gethostbyaddr, args, kwargs) 
Example #6
Source File: resolver_thread.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def gethostbyaddr(self, *args, **kwargs):
        return self.pool.apply(_socket.gethostbyaddr, args, kwargs)