extmod/modlwip: slip: Use stream protocol and be port-independent.

Based on the original patch by Galen Hazelwood:
https://github.com/micropython/micropython/pull/1517 .
This commit is contained in:
Paul Sokolovsky
2015-10-27 00:04:33 +03:00
parent f3e46d0c52
commit e0d7740a22
6 changed files with 109 additions and 3 deletions

View File

@@ -614,3 +614,32 @@ Q(mem32)
Q(ussl)
Q(wrap_socket)
#endif
#if MICROPY_PY_LWIP
// for lwip module
Q(lwip)
Q(reset)
Q(callback)
Q(socket)
Q(AF_INET)
Q(AF_INET6)
Q(SOCK_STREAM)
Q(SOCK_DGRAM)
Q(SOCK_RAW)
// for lwip.socket
Q(close)
Q(bind)
Q(listen)
Q(accept)
Q(connect)
Q(send)
Q(recv)
Q(sendto)
Q(recvfrom)
Q(settimeout)
#if MICROPY_PY_LWIP_SLIP
// for lwip.slip
Q(slip)
Q(status)
#endif
#endif