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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user