kopia lustrzana https://github.com/micropython/micropython-lib
socket: Implement inet_aton() in terms of inet_pton().
rodzic
16467be125
commit
e7289fe35e
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue