daviddpd / dpdChatFabric

A Light weight private messaging (and chat) fabric, with direct, relayed, and P2P modes for IoT
https://chatfabric.org
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Reimplement Socket Connection "object" #4

Open daviddpd opened 8 years ago

daviddpd commented 8 years ago

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.