summaryrefslogtreecommitdiffstats
path: root/drivers/unix/net_socket_posix.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Detect POLLERR revents too in NetSocketPosix.Fabio Alessandrelli2018-09-221-0/+1
| | | | Usually indicate an RST was received by a TCP socket.
* Use select instead of WSAPoll on Windows.Fabio Alessandrelli2018-09-221-4/+51
| | | | | | | | | WSAPoll is broken by design. It was announced as the new way to introduce compatibility to posix sockets, their implementation was broken, and they decided not to fix it. You can read the full story here: https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/
* Properly initialize Winsock on startupFabio Alessandrelli2018-09-131-1/+18
| | | | Also fix typo in _get_last_error which caused Winsock connect to fail.
* New NetSocket interface, BSD/Win implementationFabio Alessandrelli2018-09-121-0/+535
Unified BSD and Winsock sockets into a single implementation of a generic NetSocket interface. This is some ground work for few network improvements: - Reuse as much code as possible between Posix and Windows. - Provide a single point of implementation for exotic sdks (consoles). - Provide platform agnostic StreamPeerTCP and PacketPeerUDP in core. - Implement connect for UDP allowing for DTLS implementation.