473,804 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

best collection for collection of users

Hi, im creating an application that will keep track of what users are logged
into a network at a given time. all users must sign ingo this network first,
so whenever a user is logged on, i will be notified. I am wondering on what
the best collection will be. the number of users will vary (this is an AIM
like network) so it needs to be accessed quickly and efficiently. what is the
best collection for this?
--
-iwdu15
Jan 2 '07 #1
3 1048
iwdu15,
Without more details, such as average & maximum # users, I would say a
Dictionary(Of User) would be a good start. Where User is your type that
maintains information about a specific user that is logged in.

However! you will want to consider using a thread safe wrapper around the
Dictionary(Of User)...

Note Dictionary(Of T) is a .NET 2.0 type, if you are using a previous
version of .NET I would suggest a HashTable.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"iwdu15" <jmmgoalsteraty ahoodotcomwrote in message
news:51******** *************** ***********@mic rosoft.com...
Hi, im creating an application that will keep track of what users are
logged
into a network at a given time. all users must sign ingo this network
first,
so whenever a user is logged on, i will be notified. I am wondering on
what
the best collection will be. the number of users will vary (this is an AIM
like network) so it needs to be accessed quickly and efficiently. what is
the
best collection for this?
--
-iwdu15
Jan 2 '07 #2
hi, thanks for the quick reply. Sorry for the lack of info, however, i dont
have anymore info. i am in the development stage and building this from the
ground yp. I am just looking ahead for if i had a large network (which is
very unlikely will happen, this is just a project to learn about servers and
clients, multi-user interaction, etc) or a small network. I was just looking
for a quick yet efficient storage mean and maybe thread-safe.
--
-iwdu15
Jan 2 '07 #3
LDAP (assuming it is Microsoft) is in my idea related to your reply what you
have to investigate.

http://msdn.microsoft.com/library/de...sualStudio.asp

AFAIK will this not fulfil your need, therefore you need an extra table as
addition which you hold somewhere to fulfil the needs you have described.

I would make from that table a simple database file which keeps track of the
logged on time on users based on the information in the AD.

Cor
"iwdu15" <jmmgoalsteraty ahoodotcomschre ef in bericht
news:CB******** *************** ***********@mic rosoft.com...
hi, thanks for the quick reply. Sorry for the lack of info, however, i
dont
have anymore info. i am in the development stage and building this from
the
ground yp. I am just looking ahead for if i had a large network (which is
very unlikely will happen, this is just a project to learn about servers
and
clients, multi-user interaction, etc) or a small network. I was just
looking
for a quick yet efficient storage mean and maybe thread-safe.
--
-iwdu15

Jan 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3398
by: Kakaiya | last post by:
Error message: An unhandled exception of type 'System.InvalidCastException' occurred in test.dll Additional information: Specified cast is not valid. Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
136
9468
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
1
2102
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for work. I am working on Access 2000. I have basic SQL/VB skills - and am pretty accomplished at putting the databases together. Anyway...I've created a database to keep track of "Dayworks" we are
9
3500
by: Anders Borum | last post by:
Hello! I have a class that needs to validate the input value, when a programmer changes a specific property on a class. The input should only accept the following pattern {1,n} (alpha-numeric with atleast one entry). I'm a little resistant to implementing a regular expression validation, because of the overhead involved (not because I can't :-). Obviously, it's possible to implement the pattern validation using regular string ops ..
9
5493
by: Alfred Taylor | last post by:
I'm testing the waters of n-tier development and I ran into a scenario that I'm not sure what the best solution would be. I have a Company object which contains a collection of contacts retrieved from a database. In the presentation layer, the user will be able to add/delete/modify this collection in which case it needs to be synced with the database. The question is basically how best to do this? Aside from overriding the add/remove...
3
4588
by: jason | last post by:
Hello. I've got this simple collection populate code I downloaded from the net (sorry can't find source now) I'm trying to test, but I can't seem to get it to work. Any help would be greatly appreciated. I've compiled the following VB.NET into a DLL: Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Collections
2
1482
by: Sjaakie Helderhorst | last post by:
Hi, What's the best way of storing a dataset (+/-1000 rows, 9 columns)? I'm using a session-variable but this seems to have serious impact on performance. It's a shop and I'm using the same dataset (added an 'amount' cell) to generate a dataview for basket Most users will use the shop to order at 5pm (about 800 users), so I want to keep server-stress within acceptable parameters. Any help or suggestion is appreciated.
0
4253
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com. --------------------------------------------------------------------------------
2
1683
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi, I have been developing using C# in ASP.Net for about a year now. And have been a programmer for about 10 years. I have learned many different things in .NET, but still when I look at sample code fromother programmers I feel like I am so far behind. I see them usingstuff like Interfaces, IEnumerables, StringBuilders, etc. I have written several applications in C# since I started, but I don't ever seem to need or use those more...
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10599
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.