Right now, socket connects are inside the chatFabric code. ESP8266 does this quite differently than POSIX/BSD style sockets, so there are may ifdef's.
iOS has a fairly different way of doing this, but supports the BSD code. (Though, doubt Apple will approve this app.) Need push the socket communication (include UDP retry/retransmit) up the stack to the "porting" layer.
So, chatFabric should just produce a byte-stream, that is then passed written to a socket/FD, and the upper layers handle the byte-stream delivery.
Right now, socket connects are inside the chatFabric code. ESP8266 does this quite differently than POSIX/BSD style sockets, so there are may ifdef's.
iOS has a fairly different way of doing this, but supports the BSD code. (Though, doubt Apple will approve this app.) Need push the socket communication (include UDP retry/retransmit) up the stack to the "porting" layer.
So, chatFabric should just produce a byte-stream, that is then passed written to a socket/FD, and the upper layers handle the byte-stream delivery.