Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C++ / CLI » General » Downloads
 
Add your own
alternative version

.NET Dynamic Software Load Balancing

, 9 Dec 2002
A Draft Implementation of an Idea for .NET Dynamic Software Load Balancing
loadbalancing_src.zip
LoadReportingLibrary
MachineLoadMonitoringServer
MachineLoadReportingServer
Resources
Cluster.ico
Setups
LoadBalancingClientSideSetup
LoadBalancingClientSideSetup.vdproj
LoadBalancingServerSideSetup
LoadBalancingServerSideSetup.vdproj
SourceCodeSetup
SourceCodeSetup.vdproj
WebAppSetup
WebAppSetup.vdproj
SharedFiles
SharedLibrary
Bin
LoadBalancingClientTest
LoadBalancingLibrary
LoadBalancingWebTest
Global.asax
LoadBalancingWebTest.csproj.webinfo
LoadBalancingWebTest.vsdisco
LoadMonitoringLibrary
//////////////////////////////////////////////////////////////////////////////
// .NET Dynamic Software Load Balancing
// A Draft Implementation of an Idea for .NET Dynamic Software Load Balancing
// (c) 2002, Stoyan Damov (stoyan_damov@hotmail.com)
// The software comes �AS IS�, with all faults and no warranties.
//////////////////////////////////////////////////////////////////////////////

#pragma once
#if !defined (ReporterWorker_H)
#define ReporterWorker_H

#include "stdafx.h"

using namespace System::Text;
using namespace System::Threading;
using namespace System::Net;
using namespace System::Net::Sockets;

#include "LoadMonitoringServer.h"
#include "WorkerTcpState.h"
#include "WorkerUdpState.h"
FORWARD_DECLARE (MachineLoadsCollection)
////////#include "MachineLoadsCollection.h"

namespace SoftwareLoadBalancing
{

private __gc class ReporterWorker : public Tracer
{

PUBLIC:
	ReporterWorker (
		LoadMonitoringServer __gc* server,
		WorkerDoneEventHandler __gc* workerDoneCallback,
		int port,
		int backlog,
		MachineLoadsCollection __gc* machineLoads);

PUBLIC:
	void Run ();

PRIVATE:
	void HandleTcpRequest (Object __gc* state);

PRIVATE:
	LoadMonitoringServer __gc*		server;
	WorkerDoneEventHandler __gc*	workerDoneCallback;
	Socket __gc*					socket;
	int								listenPort;
	int								backlog;
	MachineLoadsCollection __gc*	machineLoads;
}; // ReporterWorker


} // namespace

#endif // ReporterWorker_H

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Stoyan Damov
Web Developer
Bulgaria Bulgaria
I'm crazy about programming, bleeding-edge technologies and my wife, Irina. Thinking seriously to start living in Centurian time.
 
The image shows me, happy :P
 
My blog

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141220.1 | Last Updated 10 Dec 2002
Article Copyright 2002 by Stoyan Damov
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid