LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2004, 05:05 AM   #1
jhon
Member
 
Registered: Aug 2004
Posts: 32

Rep: Reputation: 15
architecture question


Hi,

I want to include my server class as a data member of another class (class Super).

do you recommend class Super to posses as data members both an instance of class Server and a data member that will hold array of active sockets?

or should Super class posses only an instance of class Server and class Server should hold the array of active sockets? if this is the better option, I don't understand how should class Super 'know' which socket it wants to read/ write to/ from.

thanks for your help
 
Old 09-13-2004, 09:04 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
1. Wrong forum - there is a programming forum in General section. edit: it's below the General section actually
2. This is not an architecture issue, rather a data-entity relations design issue.
3. To stop ranting and answer your question finally : It depends. Is the Server class responsible of handling connections onall the sockets? If it is, than it must see the sockets so it must include them. If the Super class will be responsible of keeping track of active connections and sockets, and Servers will be created for each socket (or something similar) than the Server does not need to see all sockets.

Last edited by r0b0; 09-13-2004 at 09:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System Architecture Question Centinul Linux - Newbie 6 07-20-2005 04:15 PM
Architecture question begby Linux - Hardware 12 04-18-2005 04:44 AM
RPM architecture question aviceda Linux - Newbie 3 12-15-2004 06:17 AM
Linux Architecture question wae Linux - Newbie 3 10-16-2003 03:50 AM
Architecture Question snocked Linux - Newbie 15 01-02-2003 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration