Files
drivers/examples
Scott Feldman 8642886f73 correct netdever Accept() prototype
According to man page accept(2), accept returns new client sockfd and
remote peer ip:port.  This patch corrects the Accept() prototype in the
netdever interface to not take in an ip:port arg, but rather return an
ip:port for remote peer.

Tested with examples/net/tcpecho on wioterminal and nano-rp2040.  Here's
a run with wioterminal:

SERVER
============
sfeldma@nuc:~/work/drivers$ tinygo flash -monitor -target wioterminal -size short -stack-size=8kb ./examples/net/tcpecho
code    data     bss |   flash     ram
110876    2552   11212 |  113428   13764
Connected to /dev/ttyACM2. Press Ctrl-C to exit.

Realtek rtl8720dn Wifi network device driver (rtl8720dn)

Driver version           : 0.0.1
RTL8720 firmware version : 2.1.2
MAC address              : 2c:f7:f1:1c:9b:2f

Connecting to Wifi SSID 'test'...CONNECTED

DHCP-assigned IP         : 10.0.0.140
DHCP-assigned subnet     : 255.255.255.0
DHCP-assigned gateway    : 10.0.0.1

Starting TCP server listening on :8080
Client 10.0.0.190:50000 connected
Client 10.0.0.190:50000 closed

CLIENT
=============
nc -p 50000 10.0.0.140 8080
2023-12-19 09:33:54 +01:00
..
2021-05-12 09:21:52 +02:00
2021-12-20 09:57:37 +01:00
2020-02-08 19:54:31 +01:00
2020-07-31 19:31:52 +02:00
2021-01-08 11:32:49 +01:00
2022-03-10 19:10:50 +01:00
2022-09-18 15:22:07 +02:00
2021-01-27 23:50:58 +01:00
2020-07-31 19:25:56 +02:00
2021-12-20 09:57:37 +01:00
2021-05-11 11:13:29 +02:00
2021-03-26 18:10:39 +01:00
2022-04-08 15:41:46 +02:00
2021-12-20 09:57:37 +01:00
2020-02-08 19:54:31 +01:00
2022-09-25 13:23:16 +02:00
2023-05-20 15:49:13 +02:00
2023-08-27 11:38:33 +02:00
2023-12-19 09:33:54 +01:00
2021-11-21 14:46:15 +01:00
2023-09-20 19:14:17 +02:00
2020-02-26 19:56:13 +01:00
2021-05-12 15:29:18 +02:00
2020-02-08 19:54:31 +01:00
2023-09-19 08:31:43 +02:00
2022-02-18 06:01:55 +01:00
2021-01-27 23:50:58 +01:00
2021-01-27 23:50:58 +01:00
2020-02-08 19:54:31 +01:00
2023-05-21 00:32:05 +02:00
2021-12-14 09:14:10 +09:00