From e7289fe35ec440c989907834d8945ec646690fe3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 26 Jul 2015 12:08:55 +0300 Subject: [PATCH] socket: Implement inet_aton() in terms of inet_pton(). --- socket/socket.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/socket/socket.py b/socket/socket.py index 6d75c657..c97ccea3 100644 --- a/socket/socket.py +++ b/socket/socket.py @@ -8,6 +8,9 @@ IP_ADD_MEMBERSHIP = 35 IP_DROP_MEMBERSHIP = 36 +def inet_aton(addr): + return inet_pton(AF_INET, addr) + def create_connection(addr, timeout=None, source_address=None): s = socket() #print("Address:", addr)