DC Hub V2.0

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
((UKSN))shad_dow
Posts: 4
Joined: 2003-08-13 07:29

DC Hub V2.0

Post by ((UKSN))shad_dow » 2003-09-02 05:43

hello all ,

any body got any ideas on how to turn scripts like genbot,ragaman,trivbot etc .. in to .dll plugins for DC Hub V2.0 or where i can get plugins for it ...

all help will be appercaited 8)
Co-Owner of -=UKSafeNet=- dc network

Gizmo
Posts: 21
Joined: 2003-01-13 08:41

Post by Gizmo » 2003-09-02 10:54

Im in the process of writing one. iv wrote a class so that when a user comes in it will get all there information and store it in a vector . . its in working progress and am currently working on +userinfo . . its going to take some time but fingures crossed when its done it will do quite a few things

Gizmo
Posts: 21
Joined: 2003-01-13 08:41

Post by Gizmo » 2003-09-02 19:41

A sneek at what im doing is below. Its only the header file as the .cpp file contains too much code to past.

Code: Select all


#ifndef _DCUSER_
#define _DCUSER_

#include "String.h"
#include "InStr.h"
#include <time.h>


		struct DCTag
		{
			int iRegHubs;
			int iOPingHubs;
			int iNormalUserHubs;

			int iSlots;
			int iOpenSlots; // this one will not always be present
		};


class DCUser
{
	private:

		String sUsersName;
		String sUsersIP;
		bool userIsOp;
		String Description;
		long lShairSize;
		String sConectionType;
		String sEMail;
		String sRawDCTag; // The DC Tag in its raw state e.g.<++ V:0.241,M:A,H:0/3/1,S:4>
		bool HasUserLogedInBefore;

		String sTimeLogedOn;

		struct DCTag UsersTag;

	public:

		DCUser();
		//Default Constructor
		DCUser(String sTheUsersName);
		// Constructor

		char *GetUsersName();
		char *GetUsersIP();
		bool  GetIsUserOp();
		char *GetDescription();
		long  GetShairSize();
		char *GetConectionType();
		char *GetEMail();

		struct DCTag GetTagInfo();
		int GetNoOfRegHubsIn();
		int GetNoOfOPingHubsIn();
		int GetNoOfNormalHubsIn();

		bool operator == (DCUser& User);



		void SetIP(char *cIP);
		void SetIsUserOp (bool bOP);
		void SetUserDescription(char *cDescription);
		void SetShairSize(long lSize);
		void SetConnectionType(char *cConnection);
		void SetEMail (char *cTheEMail);



	private:

		long WorkOutShairSize(long lSizeInBytes);
		void WorkOutDCTag();

};

#endif

((UKSN))shad_dow
Posts: 4
Joined: 2003-08-13 07:29

Post by ((UKSN))shad_dow » 2003-09-05 03:54

Nice 1 gizmo

i be happy to test it out for u as soon as u relesed it :)

plz keep me posted :) and thx for the reply :)
Co-Owner of -=UKSafeNet=- dc network

Gizmo
Posts: 21
Joined: 2003-01-13 08:41

Post by Gizmo » 2003-09-05 12:47

Version 0.2 is out . . but i can't atach files to here can i ??

Gizmo
Posts: 21
Joined: 2003-01-13 08:41

Post by Gizmo » 2003-09-06 12:27

you can get version 0.2 from http://Gizmos.no-ip.com

Gizmo
Posts: 21
Joined: 2003-01-13 08:41

Post by Gizmo » 2003-09-08 12:07

Version 0.3 is out and it does basic slot checking. It will check to see if some one is in more hubs than u specify and if they have to many slots open. If eather of these turn out to be true the user it sent a message of why and then disconected

you can get it here

In this version you have text file (which is where you say how many slots and hubs a person can be in and have) which must be in the same directory as the DLL.

Im still working out bugs as they pop up and if u find any plz let me know.

Gizmo

oh btw it does not check this for ops :) . . may be ill add later the option to wether it will check ops or not.

Locked