-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
137 lines (104 loc) · 3.1 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Release checks:
- Unit tests
- Game test
- Change calloc for 'malloc'
- Specify NDEBUG
- Change redundent LOG for LOG ( ) (nothing)
TODO refactor:
- MasterSessionData should be variable group data.
- Buffer new connections in client-server achitecture -> build RPC buffering.
- Implement variable group synchronization.
- Validate disconnection sequence.
- Implemented unreliable synchronization.
- Implement MTU discovery
- Implement congestion control
- Remove 2ms delay on dispatch to see how congestion control works
- Add high level entity interpolation
- Use Args&& for callRpc however, do proper handling for BinSerializer otherwise many linking errors.
- Fixup SDL socket implementation
- Add android port (first port)
- Add remainder ports
- Add tutorial on website
------ THE GRAND DESIGN ------
Socket
- uint
Address
- ip
- port
Link : ComponentCollection, ParentNetwork
LinkState : ParentLink, IComponent
- state (connecting/connected/disconnected)
LinkStats : ParentLink, IComponent
- maxMtu
- send bytes/sec
- recv bytes/sec
SendStreams : ParentLink, IComponent
RecvStreams : ParentLink, IComponent
AckStreams : ParentLink, IComponent
ReceptionThread : ParentSocketSetManager
- listenOnSocketSet()
----------------------
- socketSet
Network : ComponentCollection
SocketSetManager : ParentNetwork, IComponent
- addSocket()
- removeSocket()
- merge() { to as small socket sets as possible on remove }
------------
- receptionThreads[]
LinkManager : ParentNetwork, IComponent
- addLink( socket, destIp, id )
- removeLink(..)
-------------------
- links[]
Session : ParentNetwork (Not a component)
- startListen()
- stopListen()
------
- ptrToNetwork
- isP2p
- pw
- max clients
- num clients
- state
- customMd
- links[]
- listeners[]
- buffered Rpc's
GroupManager : ParentSession
- addPendingGroup
- removeGroup
- processPendingGroups
Group : ParentGroupManager
- groupId
- variables[]
Variable : ParentGroup
- ptrToGroup
- data
- dataSize
- bit in group
- owner
Listener : ParentNetwork (Not a component)
- port
- socket
- source_addr
MasterSession : ParentMasterServer
- ptrToMasterServer
- isP2p
- isPassworded
- numClients
- maxClients
- rating
- hostAddr
- customFilterMd
- links[]
MasterServer : ParentNetwork, IComponent
- startListen
- stopListen
- registerSession
- joinSession
------
- masterSessions[]
- listeners[]
SendThread : ParentNetwork, IComponent
- links[]