Code Monkey home page Code Monkey logo

armaserverinfos's Introduction

#ArmaServerInfos

Armored Assault 2 - GameServer Query Library

##Description

ArmaServerInfos is a .NET C# network library which encapsulates the Arma2 UDP server protocol. With ArmaServerInfos you can query any server in the wild to retrieve its exposed data and work with them easily.

Building a game launcher UI on top of it is pretty simple.

##Examples

Basic

GameServer server = new GameServer("127.0.0.1", 2302);
server.Update();

That's all ! Now your GameServer object reference contains all the server data :

  • server.ServerInfos : contains all the parsed game server data (like server version, mods, max number of players, number of players online etc..)
  • server.Players : contains the list of current players

Events

The update process triggers a OnlineStateChanged event so you can bind some UI changes.

GameServer server = new GameServer("127.0.0.1", 2302);
server.OnlineStateChanged += MyEventHandler;
server.Update();

Solution structure

There are 3 projects in the solution

  • ArmaServerInfos : This is the main library
  • ArmaServerInfos.Tests : Unit tests suit for the library
  • ConsoleApp : A simple console application provided as an implementation example.

Requirements

  • Visual Studio 2012
  • .NET 4.5

The raw code should work with on any .NET 2.0+ system (Mono even). You just have to recreate a solution targeting your requirements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.