Alexandre Janniaux
e5ec90a6f9
SocketImpl: fix success path by setting NoError
...
Initialize the error to SocketError::NoError in case of success.
Otherwise, the error wasn't initialized in the success path for the
socket poller, and it was reaching an unknown error because of that.
2022-03-20 17:15:45 +01:00
Jérôme Leclercq
cb1bc956b2
Network: Fix posix implementation
2022-02-24 18:28:41 +01:00
Jérôme Leclercq
6c35b0be57
Minor fixes
2022-02-05 21:30:36 +01:00
SirLynix
89c7bbf197
Update copyright date
2022-01-01 15:30:09 +01:00
Jérôme Leclercq
b98fd65a01
Fix a lot of small bugs/warnings
2021-12-25 20:07:53 +01:00
Jérôme Leclercq
a02b1952c0
Apply header order fix
2021-10-28 09:53:56 +02:00
Jérôme Leclercq
ed7ab31933
Apply copyright fix to all files
2021-10-26 14:31:35 +02:00
Jérôme Leclercq
874fb3542e
Convert all remaining enums to enum classes (!)
2021-05-25 10:40:07 +02:00
Jérôme Leclercq
031e52b63f
Network: Fix compilation under Linux (fix merge)
2021-05-19 20:54:10 +02:00
Jérôme Leclercq
26de5872eb
Merge branch 'master' into graphics-next
2021-05-17 18:58:04 +02:00
ImperatorS79
f05ed5781b
IP_MTU missing on macos
2020-11-22 13:32:17 +01:00
ImperatorS79
d4cd0581e4
Update SocketImpl.cpp
2020-11-21 21:35:51 +01:00
ImperatorS79
255812c80e
Fix missing MSG_NOSIGNAL and TCP_KEEPIDLE on macos
2020-11-21 21:29:23 +01:00
Jérôme Leclercq
f52c43df49
Network: Fix TcpClient::PollConnection on Linux
2020-10-31 17:33:56 +01:00
Jérôme Leclercq
2b6a463a45
Remove Nz::String and Nz::StringStream
2020-09-25 19:31:01 +02:00
Lynix
34787d6766
Network/SocketImpl: Fix linux build
2018-10-01 23:10:25 +02:00
Lynix
67c56b2aba
Network/TcpClient: Add PollForConnected
2018-10-01 23:04:53 +02:00
Jérôme Leclercq
56873b92b0
Network/Socket: Fix Connect (timeout) on Windows/Linux
2018-08-30 13:03:50 +02:00
Jérôme Leclercq
28c6bd7af7
Network: Log internal errors
2018-08-30 12:10:33 +02:00
Jérôme Leclercq
2fcea6b79f
Core/StackArray: Moved StackArray class to its own header
2018-07-02 17:53:49 +02:00
Jérôme Leclercq
56b23a2f27
Network/SocketPoller: Wait() now returns the number of active sockets, and optionally the last error
...
It will also ignore the EINTR error on Linux
2018-06-12 14:31:49 +02:00
Lynix
df510aeb78
Network/Socket: Fix broadcast & dual-stack on Posix
2018-04-01 21:01:13 +02:00
Lynix
eeba7f96a0
Fix compilation
2018-04-01 20:52:52 +02:00
Lynix
715729fc02
Network: Add support for dual-stack sockets
2018-04-01 20:48:50 +02:00
Jérôme Leclercq
98a03cb543
Network/SocketPoller: Fix potential bug on Connect (Posix)
2018-01-05 15:39:35 +01:00
Jérôme Leclercq
192321b448
Network: Fix uninitialized values (found by valgrind)
2017-12-13 12:55:03 +01:00
Lynix
683b09144d
Core: Replace StackAllocation by StackArray
...
This will cleanup alloca usage a little bit
2017-10-14 18:04:16 +02:00
Gawaboumga
bbac0838dd
Include-What-You-Use ( #137 )
...
* IWYU Core
* IWYU Noise
* IWYU Utility
* IWYU Audio
* IWYU Platform
* IWYU Lua
* IWYU Network
* IWYU Physics2D
* IWYU Physics3D
* IWYU Renderer
* IWYU Graphics
* IWYU NDKServer
* IWYU Fix
* Try to fix compilation
* Other fixes
2017-10-01 11:17:09 +02:00
Jérôme Leclercq
aac8d8301b
Network: Fix Linux build
2017-07-11 12:19:11 +02:00
Jérôme Leclercq
9fb9289d6e
Network/Socket: Fix IPv6 handling
2017-07-11 12:11:43 +02:00
Jérôme Leclercq
b4732d8c17
Add Udp::ReceiveMultiple method
2017-07-11 12:11:20 +02:00
Lynix
42d5f849f7
Network/SocketImpl: Okay, I promise to try to compile myself next time
2017-01-27 16:49:09 +01:00
Lynix
80442924c1
Network/SocketImpl: Fix code, once more
2017-01-27 16:43:54 +01:00
Lynix
7602b4a041
Network/SocketImpl: Fix typo
2017-01-27 16:37:16 +01:00
Lynix
31ebe5983e
Network: Fix typo..
2017-01-27 16:31:41 +01:00
Lynix
90237186b5
Network/SocketImpl: Fix missing include
2017-01-27 16:25:48 +01:00
Lynix
d8b7ff9fa6
Network/SocketImpl: Fix possible code errors (Posix)
2017-01-27 15:05:26 +01:00
Lynix
453ca77c1b
Network/SocketImpl: Fix Send causing a SocketError_Internal status on non-blocking sockets
2017-01-27 15:05:04 +01:00
Lynix
002d33f590
Network/SocketImpl: Fix compilation
2017-01-27 14:55:37 +01:00
Lynix
ab3b730d21
Network/TcpClient|UdpSocket: Add SendMultiple method
...
To efficiently merge multiples buffers into a reduced number of network
packets
2017-01-27 14:51:01 +01:00
Jérôme Leclercq
311e2a545d
Network/SocketPoller: Fix cases where EAGAIN is not the same as EWOULDBLOCK (Posix)
2017-01-25 15:54:13 +01:00
DrLynix
85f0208690
Newtork/AbstractSocket: Allow to specify receive and send buffer size per socket
2017-01-20 14:33:05 +01:00
Jérôme Leclercq
96a886260e
Network: Fix compilation on Linux x86 ( Fixes #81 )
...
Former-commit-id: b9ee4a38914e101751907a0afd5bc4387c4cc595 [formerly fbd619850d74c3264eead6456950549a00445a48] [formerly 38aa0d99632748baef4bdbed948e97d3348fd7c3 [formerly 24dc3d90f246b8a437a6fc1ace1b3091fd0e8df9]]
Former-commit-id: 37cfa200c8effe1822e9e2c8dd3224f8d4138c9d [formerly 5a4fdb8f93bcef49702e73d3ca8c7f5a1be56716]
Former-commit-id: 3e444884880bb866d4b66b5d4531272a02ac4125
2016-10-08 20:55:00 +02:00
Lynix
9452b98f49
Network: Add SocketPoller class
...
Former-commit-id: 86b9266d904551d19e7ec8e8d6bbe5f137e8d29f [formerly 34575937d84f796cfe36a5ab97ea1f787c1506ba] [formerly 6c8c621523800958ad38eef118fcb3687c34b367 [formerly a1f1330fbe6f990a21bbe6dccfe727edec0e2b44]]
Former-commit-id: 6635c463a753f744b835267181b51ed89620b627 [formerly 14e84c7155cd669ac20a5492e67704059a442925]
Former-commit-id: 7becccdf2d8aac7cdf526d855215d7d144be284c
2016-09-22 18:16:39 +02:00
Lynix
f723d6a29c
Network: Replace unsigned int by size_t for size
...
Former-commit-id: efa7e2f50ae370f96871726be7906332ca8969a4
2016-02-04 13:27:06 +01:00
Gawaboumga
1d04ac8f13
First implementation of Posix Network
...
Former-commit-id: 2b73870d8eef4dc92038224164396390ac43df46
2015-12-30 15:20:07 +01:00