Age | Commit message (Collapse) | Author |
|
On Unix systems, sockets are like file descriptors, and file descriptors
are usually shared among child processes.
This means, that if we spawn a subprocess (or we fork) like we do in the
editor, open file descriptors will leak to the new process.
This causes issue with sockets as they might remain open and bound
(listening) when the original process closes.
|
|
|
|
Remove redundant code, possible NULL pointers and others
|
|
|
|
|
|
Happy new year to the wonderful Godot community!
|
|
|
|
Also fix typo in _get_last_error which caused Winsock connect to fail.
|
|
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.
|