Server object

S

Smitha S.

Hi,

I wanted some suggestions on creating a server object. I want to create a
class SearchEngineServer that listens on clients for a query and performs
a search on database (or passes the request to the relevant server) and
returns the results to the client. All the while I have been implementing
this server in a main() function and not as a class. But now I want to
convert it into a class since the functionalities are increasing. Any
suggestions? Also once I create a class, how do I instantiate in my main
and make sure it is accepting connections?

Thanks,

-Smitha S-
 
M

Mike Wahler

Smitha S. said:
Hi,

I wanted some suggestions on creating a server object. I want to create a
class SearchEngineServer that listens on clients for a query and performs
a search on database (or passes the request to the relevant server) and
returns the results to the client. All the while I have been implementing
this server in a main() function and not as a class. But now I want to
convert it into a class since the functionalities are increasing. Any
suggestions? Also once I create a class, how do I instantiate in my main
and make sure it is accepting connections?

http://www.slack.net/~shiva/welcome.txt

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top