Jérôme Leclercq
192321b448
Network: Fix uninitialized values (found by valgrind)
2017-12-13 12:55:03 +01:00
Jérôme Leclercq
3589a2bc8e
Core/Flags: Reworked Flags class
2017-11-21 12:26:22 +01:00
Lynix
f2506ee918
Network/ENetHost: Fix service time precision
2017-11-20 21:04:50 +01:00
Lynix
be38aee1fa
Fix some warnings
2017-10-18 22:02:21 +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
Lynix
2cd9fa2b7a
Core: Add MovablePtr class
2017-09-30 13:57:25 +02:00
Jérôme Leclercq
cc4fdf2476
Network/ENet: Add compressor support
2017-09-22 15:22:43 +02:00
Jérôme Leclercq
e37a7ad5fd
Network/ENetHost: Dismiss external peer connection if listen address is loopback
2017-09-01 15:22:27 +02:00
Jérôme Leclercq
3d368b2fe7
Network/SocketPoller: Fix behavior of Wait method (-1 will block)
2017-08-04 13:37:17 +02:00
Jérôme Leclercq
b4732d8c17
Add Udp::ReceiveMultiple method
2017-07-11 12:11:20 +02:00
Jérôme Leclercq
b2e23cfb56
Mark every bool conversion as explicit
2017-06-21 18:10:46 +02:00
Lynix
c98fb482e7
Network/ENetPeer: Add GetRoundTripTime method
2017-06-05 15:06:19 +02:00
Jérôme Leclercq
17d9cd6e7d
Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here
2017-06-01 17:25:33 +02:00
Jérôme Leclercq
8752d1e0f4
Network: Add ErrorToString for ResolveError/SocketError
2017-06-01 17:25:21 +02:00
Lynix
555f44edeb
Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here
2017-05-19 16:32:07 +02:00
Lynix
53f865c42c
Merge branch 'enet_wip_nothing_to_see_here' of https://github.com/DigitalPulseSoftware/NazaraEngine into enet_wip_nothing_to_see_here
2017-05-19 16:31:31 +02:00
Lynix
3ca179b954
Network/ENet: Separate Connect event into OutgoingConnect and IncomingConnect
2017-05-19 16:31:29 +02:00
Jérôme Leclercq
09bace0f28
Sdk/LuaBinding: Bind UdpSocket
2017-05-18 11:44:28 +02:00
Lynix
9a30a7ee04
Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here
2017-05-16 09:08:37 +02:00
Lynix
65d3b59e03
Network/SocketPoller: Makes it possible to watch read and write states
2017-05-16 09:07:28 +02:00
Jérôme Leclercq
218d9f3974
Network/ENetHost: Add GetBoundAddress()
2017-02-21 15:58:02 +01:00
Lynix
b0d0a63fca
Network/ENet: Add peer-side lag simulation
2017-02-20 23:37:31 +01:00
Lynix
20dfd61ad7
Merge branch 'enet_wip_nothing_to_see_here' of https://github.com/DigitalPulseSoftware/NazaraEngine into enet_wip_nothing_to_see_here
2017-02-16 23:26:33 +01:00
Lynix
b7ee6d7b29
Network/ENet: Move all packet allocation to host
2017-02-16 23:26:00 +01:00
Jérôme Leclercq
dee5986de5
Network/NetPacket: Allow empty pointer for NetPacket creating (won't initialize memory)
2017-02-16 16:14:24 +01:00
Lynix
8225ad3b41
Network/ENetHost: Optimize acknowledgements handling
2017-02-15 08:27:15 +01:00
Lynix
890b06bfcb
Network/ENet: Refactor
2017-02-15 08:26:56 +01:00
Lynix
5655ff3fcf
Network/ENetPacketFlags: Add Unreliable flag typedef for zero
2017-02-12 02:19:27 +01:00
Lynix
414779b53c
Network/ENetPacket: Remove unused flags
2017-02-12 02:18:38 +01:00
Jérôme Leclercq
0f2d315c1d
Network/ENet: Fix header dependency
2017-02-01 17:51:41 +01:00
Lynix
7b8100dafe
Network/ENet: Add ENet licence
2017-02-01 00:20:22 +01:00
Lynix
a087174bf8
Network/Algorithm: Add HostToNet and NetToHost
2017-02-01 00:13:08 +01:00
Lynix
85257da07e
Network/ENet: Fix some warnings
2017-01-31 23:05:18 +01:00
Lynix
6b8d9deb43
Network/ENet: Clean up time functions
2017-01-31 23:04:53 +01:00
Lynix
2f057191aa
Network/ENetHost: Add GetServiceTime()
2017-01-31 22:19:17 +01:00
Jérôme Leclercq
3ff483d2f6
Network/ENetPeer: Add GetPeerId()
2017-01-30 18:08:38 +01:00
Jérôme Leclercq
b5797dfa12
Network/ENetHost: Move handling to ENetPeer
2017-01-30 18:08:21 +01:00
Lynix
4e517bc1e3
Network/ENetHost: Add network simulator
2017-01-28 17:18:06 +01:00
Lynix
4e2a037d6b
Network/ENetPeer: Add total packet lost/sent counter
2017-01-28 17:17:42 +01:00
Lynix
c9d5f2f1ac
Network/ENet: More cleanup
2017-01-28 12:08:35 +01:00
Lynix
8fc734674d
Network/ENet: Fix fragments and cleanup
2017-01-28 11:06:09 +01:00
Lynix
0e03aae6dc
Network/ENetPeer: Fix compilation
2017-01-27 17:12:23 +01:00
Lynix
86ae60b6c2
Network: Fix compilation
2017-01-27 16:07:41 +01:00
Lynix
f59b59da27
Merge remote-tracking branch 'refs/remotes/origin/master' into enet_wip_nothing_to_see_here
2017-01-27 15:09:01 +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
Lynix
8a59dc88b8
Commit progression
2017-01-27 14:48:31 +01:00
Lynix
12b4073033
Progress
2017-01-26 09:28:41 +01:00
Jérôme Leclercq
9e3341a32a
Commit current work
...
This is a temporary branch because I'm missing a USB drive, huehue
2017-01-25 15:55:07 +01:00
Jérôme Leclercq
071147bf51
Network/AbstractSocket: Prevent querying/setting receive/send buffer size without opening the socket first
2017-01-23 11:58:05 +01:00
DrLynix
85f0208690
Newtork/AbstractSocket: Allow to specify receive and send buffer size per socket
2017-01-20 14:33:05 +01:00
DrLynix
18862fd1ba
Forgot to save those two files
2017-01-20 13:02:19 +01:00
DrLynix
f383eca19a
Update copyright year
2017-01-20 12:58:35 +01:00
Lynix
a34d1e410c
Core/Enum: Convert OpenMode and StreamOption to the new flags system
2016-11-27 13:40:47 +01:00
Jérôme Leclercq
e087129d4a
Fix many errors and warnings found out by MinGW
2016-11-04 18:14:52 +01:00
Lynix
5a07bbd001
Fix a lot of warnings from Clang/GCC
2016-10-17 14:46:53 +02:00
Lynix
6fdf4478bd
Network/SocketPoller: Fix compilation
...
Former-commit-id: ebb7105d949a924f5a454aab4f3704824e8c7e31 [formerly f2b5c057a8ded314be40d1752ad6bc86dcade278] [formerly 6487addceedb75d6f59c9c138b8e3635ea271ba2 [formerly 18f1b6e1d02b0377b382bec327f1df99c1b04f27]]
Former-commit-id: 90fc36d0a362d402fd10a23addb1bbb407e4ffb9 [formerly 82f63c8797caafb24fd3e5c8de76b8814ec24585]
Former-commit-id: 75da2a9a2dc4b2dbbbd5ad8de986ea58ee199c0f
2016-09-22 18:17:59 +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
8509c7c068
Network/RUdpConnection: Remove useless line
...
Former-commit-id: 8f55377c62171e3976f4d4d339da9c5e06df9d52 [formerly 4e8143782a1b3814596ce84a7108ebf623352674]
Former-commit-id: b58d42df10f79f54c2f104480cc897eaf943a1db
2016-06-10 12:40:31 +02:00
Gawaboumga
db8a222f62
Fix for problems signaled by clang static analyzer
...
Former-commit-id: 835f639c45509b0d55fe716e51e3285ea2a89da4
2016-05-31 21:50:31 +02:00
Gawaboumga
0a99058c4d
Documentation for module: Network
...
Former-commit-id: d36042138d0883eb118cc9a70f94f3522214dd46
2016-05-30 14:22:31 +02:00
Lynix
3e78dd40ad
Fix some GCC warnings
...
Former-commit-id: b3292fcfd4d029793cb70f97ab608aeb7d0579ef
2016-05-25 13:52:10 +02:00
Lynix
76bc70b210
Network/RUdpConnection: Add packet loss simulator
...
Former-commit-id: 8778d54b5b5a9038ec6b9d888cf6c49ad6c5721c
2016-04-17 17:56:02 +02:00
Lynix
1a5dd41407
Network/RUdpConnection: Remove useless arg from Listen
...
Former-commit-id: 94af162bf5fc1e7d06baae8e4121eb5afe10a649
2016-04-17 17:55:21 +02:00
Gawaboumga
265e1c0fbd
Fix compilation for gcc/clang + tests for serialization
...
Former-commit-id: db9c93a1db3c57f268fc17e411402e071fc8675a
2016-04-04 10:17:05 +02:00
Lynix
3adae93ea9
Fix whitespace
...
Former-commit-id: 17b52d16923deeda808c093ed499d88217ecf5d7
2016-03-30 18:37:41 +02:00
Lynix
115565fa1e
Network/Enums: Fix SocketState_Max
...
Former-commit-id: 93f0502110b74a56101dc7216adeef18afe48d70
2016-03-30 18:37:31 +02:00
Lynix
3f9a4170f1
Network: Add RUdpConnection class (experimental)
...
Currently missing an external RUdpClient class, ping handling, some
messages but should basically works
Former-commit-id: 6ebd181a4804094c62aedb8e3ba7876a7b06acdc
2016-03-09 13:54:04 +01:00
Lynix
d6a436100c
Network/IpAddress: Add std::hash specialization
...
Former-commit-id: c8617065e51b307b541e4e58e3fb2494b144e828
2016-03-02 16:53:58 +01:00
Lynix
40e12ebffa
Network/Enum: Fix typo
...
Former-commit-id: 8a41d1a2a915a8c5565e3a9ecc93898a35ed2133
2016-03-01 14:00:27 +01:00
Lynix
d24de1f719
Network/NetPacket: Add move constructor/operator
...
Former-commit-id: 56cb793ab75e5bcd97b89c5be3592922c23a7a4d
2016-02-24 14:17:47 +01:00
Lynix
a851056c0a
Network/Packet: Fixes buffer size
...
Former-commit-id: 51fd56f76af8abe8feb1ed88802ef7ec0bd4a175
2016-02-24 14:17:28 +01:00
Lynix
d6279914b4
Network/Socket: Fix last error being undefined without any operation
...
Former-commit-id: 5ccd098d93842f0be79d516630f39150a394045c
2016-02-24 14:14:29 +01:00
Lynix
08caff5ea3
Network: Add support for sending/receiving NetPacket over UDP/TCP
...
Former-commit-id: 5c09a5fa8b499e4204d2312f6d04d8554093a5a4
2016-02-04 14:51:26 +01:00
Lynix
6c0215952d
Network/NetPacket: Add Resize method and fix buffer size
...
Former-commit-id: 465864559149ef62279038c24649d73c75f38037
2016-02-04 14:40:40 +01:00
Lynix
f723d6a29c
Network: Replace unsigned int by size_t for size
...
Former-commit-id: efa7e2f50ae370f96871726be7906332ca8969a4
2016-02-04 13:27:06 +01:00
Lynix
33e2bb905b
Network/NetPacket: Add Get(Const)Data method
...
Former-commit-id: 53f4f230b3e7baa65c79d97b21e192108b771312
2016-02-04 13:24:08 +01:00
Lynix
4e3244c999
Network: Add NetCode enum and SocketError_Packet, fixes compilation
...
Former-commit-id: 2c56f086a7b8892377730e4f556f3953e9e7dc62
2016-02-04 12:48:04 +01:00
Lynix
0b71d1a2e2
Network/NetPacket: Make new packets ReadWrite
...
Former-commit-id: e9735766181932fbd9840b6f143ba133b2a5c08f
2016-02-04 12:43:50 +01:00
Lynix
00ed0e2ae3
Network/NetPacket: Inline some methods
...
Former-commit-id: d54e7b9ff1baf93f6da35e29123d598b84742eac
2016-02-04 12:24:44 +01:00
Lynix
4312de828e
Network: Add NetPacket class
...
Former-commit-id: 0c5acdbf9313621dddd3dcee23c6f85f46c27012
2016-02-03 18:44:03 +01:00
Lynix
d2a1bc3fd5
Network: Fix some move stuff
...
Former-commit-id: 33b24a038319b444b9a3b84cfeea38c8305e6568
2016-01-15 08:29:58 +01:00
Lynix
c6d16c0128
Merge branch 'NDK' of https://github.com/DigitalPulseSoftware/NazaraEngine into NDK
...
Former-commit-id: 0a246d26e2ea13acec4bcf00a48f5bec3e4f8c7f
2015-11-23 18:22:15 +01:00
Lynix
4721bf80c3
Network/TcpClient: Make TcpClient a Stream
...
Former-commit-id: 2176748166ae84b609d5a336495e6ff3550a765d
2015-11-23 18:22:12 +01:00
Lynix
b0d2675994
Network/Algorithm: Fix external linking
...
Former-commit-id: 7ad005245e1a93d0c2a8981d654dcfce462fcbd7
2015-11-22 15:53:31 +01:00
Lynix
e8aa649cfc
Network/HostnameInfo: Replace family/socketType raw value by engine enumeration
...
Former-commit-id: 40adb7654b5a741c5fa12c1b866e3b427b1be5e9
2015-11-14 02:12:10 +01:00
Lynix
3a4acd9584
Network/TcpClient: Remove unreliable QueryState()
...
Former-commit-id: 75d61ca0d84150a278c168c81af4c755e8a74d91
2015-11-13 14:17:43 +01:00
Lynix
5325513bd8
Network/TcpClient: Allow configuration before connection
...
Former-commit-id: 65c81f994ae5b9e9cce0132e2a86b1918879b24f
2015-11-13 14:01:18 +01:00
Lynix
a9611680e7
Merge branch 'NDK' of https://github.com/DigitalPulseSoftware/NazaraEngine into NDK
...
Former-commit-id: 4962dac67b404140813e143a12d5577478d8a044
2015-11-12 22:08:50 +01:00
Lynix
f28e1a7d9b
Network/UdpSocket: Add broadcasting option
...
Former-commit-id: bde428efc5e9c77cf3e64ec04d58d72613f1d8de
2015-11-12 13:35:46 +01:00
Lynix
5d6e6b2d45
Fix errors and warnings
...
Former-commit-id: a3ba309633f198f82c1d0277d750d867cad4ba44
2015-11-12 00:29:10 +01:00
Lynix
a26c979d84
Network/TcpClient: Add Connect overload resolving hostname
...
Former-commit-id: 5c667a14c591e4e9cb898a8d4c83fedf161179fd
2015-11-10 14:45:59 +01:00
Lynix
3b9c736c16
Network/AbstractSocket: Fix state sent to OnStateChange
...
Former-commit-id: ae83ea675153d7954187c12d93d7c8c42d8e1dfc
2015-11-10 14:42:36 +01:00
Lynix
fd09cdbf1e
Network/TcpClient: Replace Connect overload by WaitForConnected method
...
Former-commit-id: 11ff81ea975f79a51f6342a9a574a23d18c0180f
2015-11-10 13:55:42 +01:00
Lynix
66daa68333
Network: Little clean up
...
Former-commit-id: 594fbfbbe9051ac4ec7b647f9e2eb1a74d640a69
2015-11-10 13:35:09 +01:00
Lynix
4ad1a47064
Network: Add ResolveError handling
...
Former-commit-id: 0dc3d109284e8b475577bf44cbaeb503c4baae73
2015-11-10 13:24:25 +01:00
Lynix
64cd9edd6b
Network/AbstractSocket: Fix comment
...
Former-commit-id: f74b61def45195a8e5b82f499fbbc05ce0cc492c
2015-11-10 12:43:30 +01:00
Lynix
2efaa9dad6
Network/Socket: Rename ChangeState to UpdateState
...
Former-commit-id: 96f1909e002c0d1bc7a3ebd173fae799b6ba4770
2015-11-10 12:19:03 +01:00
Lynix
890e5c75d6
Network/AbstractSocket: Update OnStateChange signal
...
Now it is called before the state changes really
Former-commit-id: 3eec47302a971d798e1a75415377243bd743ce3f
2015-11-10 12:17:30 +01:00
Lynix
2a70758f08
Network: Get rid of now useless TcpBase
...
Former-commit-id: 5a682d6d58cc5e2b8bea19dbfc9acb1133b35337
2015-11-10 12:14:59 +01:00
Lynix
1bbf038cc6
Network: First commit
...
Former-commit-id: ec8697acc51569f5043e4f70e4cf42f1c5dc487c
2015-11-09 15:02:25 +01:00