Send and receive a packet in a lambda


Client Setup

[TCP/UDP] ClientConnectionContainer The ClientConnectionContainer contains a TCP and a UDP connection by default. In addition the ClientConnectionContainer supports: Reconnecting if the TCP and/or the UDP connection has been lost Offering various methods to send data (async, fast, slow) Buffering packets if there is no available connection Remember your settings and packet-configurations after a reconnect

… Lesen Sie den ganzen Artikel

Server Setup

After „StartTCPListener();“ the Server is up and running. The TCPListener is also in charge of the UDP connections. The property „AllowUDPConnections“ indicates whether the server is going to accept incomming UDP connections.

Library Setup

The easiest way to access the library is via NuGet. If Visual Studio doesn’t contain a NuGet Extension, download and install it manually. Instead of NuGet you can simply download the binaries. Setup with NuGet Expand the project, right click „References“ and select „Manage NuGet Packages…“ Search for „Network“ or „Thomas Christof“, select the „Network by Thomas… Lesen Sie den ganzen Artikel

UWP (WinRT) Get Raw and Real Resolution

Working with resolutions can be a real pain with WinRT apps. The MS framework isn’t as far developed as we wish sometimes. Getting the „real“ resolution on a device depends on several factors. Does the device supports software buttons Do we display the titlebar Which scale factor is currently active The orientation of the device DPI All… Lesen Sie den ganzen Artikel

Windows Phone 8.1/10/UWP Sidemenu without Splitview

How hard can it be to create a simple sidemenu which is supported on WinRT, Silverlight and UWP apps? Following article is based on a custom self implemented side menu, which is just a prove of concept with lirerly no optimizations and beautiful coding. The following screen recordings access the same code base, just with different XAMLs for the… Lesen Sie den ganzen Artikel

Windows Phone 8.1 WinRT Json Serialize + DeSerialize

Serialize object to a storage file

DeSerialize a storage file to a object

Check if the storage file exists before you call GetFileAsync. (Which is ignored at the example above)

MonoGame – User Interface

For MonoGame or XNA games an user interface is most essential. Based on the lacking and obsolete libraries like NeonForceControls, Squid, etc.. I made the effort to create my own one. Functionality The user interface is listening on Keyboard inputs Mouse inputs Touchscreen inputs Compatible with MonoGame and XNA 4.0 Optimized for desktop and mobile applications Running in… Lesen Sie den ganzen Artikel

MonoGame – Mouse/Keyboard/Gamepad/Touch-Input Helper

Input kann über verschiedene Eingabegeräte geliefert werden. Für MonoGame (oder XNA) existieren bereits Mouse/Keyboard/Gamepad und Touch-Input. Da das kontinuierliche Abfragen sehr mühsam und zeitaufwendig sein kann, habe ich ein Component erstellt, welches die meisten Aufgaben bereits übernehmen sollte.