Issues related with server architechture

From: Rajat (myself_rajat_at_yahoo.com)
Date: 02/02/05


Date: 2 Feb 2005 02:27:40 -0800

Hi all,

I am working for an server application, using TCP at transport layer.
It will be a kind of routing information management through server for
all the connected client. Means every client will interchange some
information with server time by time, and based on that information
server build a table for routing information, and further send the
require information to the clients back.

Now I have some issues related with server's architecture. Shall I go
for mutithreaded architectue, like one thread will be for main socket
for ACCEPTING the new connections, and for each new connection again
create new thread. OR there will be one thread for ACCEPTING the new
connections, and one other thread will handle all the clients
connections, using select and all.
Other than that if you have any other better idea then plz let me
know.

One more thing suppose we are SELECTING a set of sockets for
readability using select, if any one socket is ready for reading, to
find which socket is readable using a loop from MIN socket descriptor
to MAX socket descriptor is really very costly if we have a large
number of sockets to select. As well as at a perticular point of time
there may be more than one sockets will be readable, So a readable
socket having greater socket descriptor may suffer from STARVATION. Is
there any way So that we can get exactly that socket descriptor which
is ready to read.



Relevant Pages

  • Establishing a p2p connection in python
    ... programming PHP on a webdeveloper basis. ... I thought that one approach could be to write a small server for my ... users and establishing p2p connections on demand. ... It would seem like the socket ...
    (comp.lang.python)
  • Re: NLB Cluster, service restart and persistant socket connection
    ... MVP - Windows Server - Clustering ... opening a persistent socket client to another server. ... incoming socket connections are coming in ...
    (microsoft.public.windows.server.clustering)
  • Re: receiving data over socket
    ... I want to print the data the server received. ... anyone can recommend a good VB2005 book that deals with socket programming I ... if your server needs to support multiple connections ... You aren't guarenteed to recieve all your data ...
    (microsoft.public.dotnet.languages.vb)
  • Re: EZASMI Concurrent Server cannt handle mutiple open connections in the same port
    ... with socket programming on the mainframe; ... connections such as TCP, rather than datagrams. ... typical server logic would ... TN3270 00047D9F Establsh ...
    (bit.listserv.ibm-main)
  • Re: MSDN Using Asynchronous Server Socket ?
    ... I properly shutdown the socket after receiving the message. ... The problem is in your server code that handles the active connection. ... framework doesn't handle a lot of "idle" connections very well. ... client disconnects, do you shutdown and then close the client socket? ...
    (microsoft.public.dotnet.framework)

Quantcast