public Client(GlowListener host, Socket socket, int maxPackageLength, RegistryProvider registry) { Host = host; Socket = socket; MaxPackageLength = maxPackageLength; Registry = registry; _reader = new GlowReader(GlowReader_RootReady, GlowReader_KeepAliveRequestReceived); _reader.Error += GlowReader_Error; _reader.FramingError += GlowReader_FramingError; }
public Client(GlowListener host, Socket socket, int maxPackageLength, RegistryProvider registry) { Host = host; Socket = socket; MaxPackageLength = maxPackageLength; Registry = registry; _reader = new GlowReader(GlowReader_RootReady, GlowReader_KeepAliveRequestReceived); _reader.Error += GlowReader_Error; _reader.FramingError += GlowReader_FramingError; }
static void Main(string[] args) { int port; int maxPackageLength; ParseArgs(args, out port, out maxPackageLength); Console.WriteLine("Ember+ RegistryProvider v{0} (GlowDTD v{1} - EmBER v{2}) started.", typeof(Program).Assembly.GetName().Version, GlowReader.UshortVersionToString(EmberLib.Glow.GlowDtd.Version), GlowReader.UshortVersionToString(EmberLib.EmberEncoding.Version)); using (var listener = new GlowListener(port, maxPackageLength)) { Console.WriteLine("Listening on port {0}. Press enter to quit...", port); Console.ReadLine(); } }
static void Main(string[] args) { int port; int maxPackageLength; ParseArgs(args, out port, out maxPackageLength); Console.WriteLine("Ember+ RegistryProvider v{0} (GlowDTD v{1} - EmBER v{2}) started.", typeof(Program).Assembly.GetName().Version, GlowReader.UshortVersionToString(EmberLib.Glow.GlowDtd.Version), GlowReader.UshortVersionToString(EmberLib.EmberEncoding.Version)); using(var listener = new GlowListener(port, maxPackageLength)) { Console.WriteLine("Listening on port {0}. Press enter to quit...", port); Console.ReadLine(); } }