-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced section
This part of the documentation is to give information on how to fully utilize all the features inside the Network Library. I build the library because I felt the following features were missing from other network libraries. One of the biggest feature inside the Network Library is that it supports Binding almost fully. Integrating it into WPF is only a matter of setting it up. Another great feature inside the Network Library is that it respects references inside your application. If you send a reference to objects, instead of sending the whole object it only sends a reference to it. This might sound confusing but it's true.
Registering Objects is the basics to get Binding to work. If you register objects into the Network Library, the library will protect all references used over the program on that object. Only a single instance of that object exists in the application. Before you can register objects they need to fill a basic requirement. Filling this requirement is an easy task and can be done easily on new objects as well as complex existing ones.
For more information read the main documentation. It should answer all questions and provide examples on how to accomplish this task.
The heart of the Network Library. Binding Objects is the most powerful feature inside the Network Library. When done, not only will the Network Library respect all references as done when registering objects but it will also monitor them. If host has 6 clients connected, and client number 3 updates one property inside an object, those changes are updated at every client and to the host where that object is used.
This can be extremely helpful and make it easy for the programmer to implement network into applications and games. If you are creating a game and player number 3 has changed position you don't need to manually send the data over the network and manage it yourself. With binding, only doing, Player.PosX = 102; is enough. Network Library will notice the property has changed and update it to every client and/or host.