Paul Sokolovsky
24ba28a352
socket: Add INADDR_ANY.
2017-06-22 19:59:54 +03:00
Christopher Arndt
21a3dab221
socket: Add sendto method to socket class
2016-04-16 21:21:33 +03:00
Paul Sokolovsky
ff7e55e633
socket: Support IPv6 addresses.
2016-01-28 18:54:30 +02:00
Paul Sokolovsky
13b56c262a
socket: accept(): Fully decode peer address using inet_ntop().
2016-01-11 15:05:25 +02:00
Paul Sokolovsky
f1533338ea
socket: Return partially decoded peer address from .accept().
...
Full decoding requires implementing socket.inet_ntop().
2016-01-11 02:40:38 +02:00
Michael Buesch
ff27e3c8ba
socket: Add socket.error
...
Older CPython versions raised socker.error (or classes derived from it)
as exceptions on errors. Various software still uses it to be compatible
with older Python versions. As it's one-line fix, allow MicroPython to
run such code too.
try:
socket...
except socker.error as e:
...
2015-12-09 00:34:48 +02:00
Paul Sokolovsky
5c2e0becfc
socket: Support "" as host addr, meaning INADDR_ANY (0.0.0.0).
2015-12-01 19:05:30 +02:00
Paul Sokolovsky
8bb6857818
socket: Native struct sockaddr may come as bytes or bytearray.
2015-10-19 10:12:03 +03:00
Paul Sokolovsky
e3903c9f64
socket: Allow connect() & bind() to take standard tuple of (host, port).
2015-10-16 00:35:49 +03:00
Paul Sokolovsky
e7289fe35e
socket: Implement inet_aton() in terms of inet_pton().
2015-07-26 12:08:55 +03:00
Paul Sokolovsky
16467be125
socket: Add constants for basic multicast support.
2015-07-23 00:29:06 +03:00
Paul Sokolovsky
8371e7d351
socket: Import all top-level symbols from usocket.
2015-07-16 13:18:05 +03:00
Paul Sokolovsky
e42b955c1d
socket: Update for rename microsocket -> usocket.
2014-10-11 05:18:49 +03:00
Paul Sokolovsky
a8f0713548
socket: Add _GLOBAL_DEFAULT_TIMEOUT constant.
2014-05-25 22:56:45 +03:00
Paul Sokolovsky
9b3688f98a
socket: Implement create_connection(), dummy socket.sendall().
2014-05-25 22:50:58 +03:00
Paul Sokolovsky
a252332423
socket: Add dummy re-import module.
2014-05-10 01:30:52 +03:00