Click here to Skip to main content
15,879,004 members
Articles / Programming Languages / C#

Design and Implementation of a High-performance TCP/IP Communications Library

Rate me:
Please Sign up or sign in to vote.
4.83/5 (34 votes)
22 Jul 2009CPOL13 min read 114.5K   2.7K   209  
A TCP/IP Communications Library, designed to handle client-server data transmission for a massive multiplayer online game.
using System.Collections.Generic;
using System.ComponentModel;

namespace BrainTechLLC.EmlenMud.Interfaces
{
   public interface SchedulingEngine
   {
      ScheduledWorkItemQueue[] WorkItemQueues {get;set;}
   }

   public interface ScheduledWorkItemQueue
   {
      ScheduledWorkItem ScheduledWorkItem {get;set;}
   }

   public interface ScheduledWorkItem
   {
      World MayAlterWorld { get; set; }
      PlayerOrCharacter MayAlterPlayerOrCharacter { get; set; }
      CharacterState MayAlterCharacterState { get; set; }
      CharacterAction MayResultInCharacterAction { get; set; }
   }

   public interface World
   {
      PlayerOrCharacter[] InfluencesCharacters { get; set; }
      NewActionOrWorkItem ReactionToChange { get; set; }
   }

   public interface PlayerOrCharacter
   {
      World[] CharacterActionsAffectWorld { get; set; }
      Intention ChangeIntention { get; set; }
   }

   public interface CharacterState
   {
      PlayerOrCharacter StateAffectsCharacter { get; set; }
   }

   public interface Intention
   {
      NewActionOrWorkItem ResultingAction { get; set; }
   }

   public interface CharacterAction
   {
      PlayerOrCharacter AffectsCharacter { get; set; }
      CharacterState AltersState { get; set; }
   }

   public interface NewActionOrWorkItem
   {
      SchedulingEngine ScheduleForExecution { get; set; }
   }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Troppus Software
United States United States
Currently working as a Senior Silverlight Developer with Troppus Software in Superior, CO. I enjoy statistics, programming, new technology, playing the cello, and reading codeproject articles. Smile | :)

Comments and Discussions