473,395 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Need help with multiple socket server

Hi:

I would like to build a socket server application that is user configurable
using XML (app.config) and would like some guidance.

I already have a single socket server working but would like to convert this
to a multi-socket application

I would like to specify in the app.config one or more socket, buffer size &
the business layer object/class to use when a message is received on each
socket

Any help will be appreciated.

Thanks

Winston
Nov 17 '05 #1
3 2441
Hi Winston!

In the text you wrote you never said anything about using synchorous or
asyncrhonous sockets. I believe from what you wrote however that you are
working with synchrous sockets.

A listening socket is in it self capable to accept more than one incoming
connection. I would suggest you to read this article.

http://www.codeguru.com/Csharp/Cshar...cle.php/c7695/

Fetching settings from a app.config file is not hard. I don't remeber right
now how to do it in .Net 1.1. but in .Net 2.0 all you need to do is to create
a System.Configuration.AppSettingsReader and then use the GetValue method in
order to get values stored in the config file.

Personally I prefere to use datasets when reading/writing settings to a file
thought. (DataSet ReadXml and WriteXml methods);

I hope this will help you to some extent

//Mikael

"Winston Nimchan" wrote:
Hi:

I would like to build a socket server application that is user configurable
using XML (app.config) and would like some guidance.

I already have a single socket server working but would like to convert this
to a multi-socket application

I would like to specify in the app.config one or more socket, buffer size &
the business layer object/class to use when a message is received on each
socket

Any help will be appreciated.

Thanks

Winston

Nov 17 '05 #2
Hi,
You could create one thread for each kind of connection ( port #/ App to
call )

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Winston Nimchan" <wi*************@trinsys.com> wrote in message
news:eO**************@TK2MSFTNGP14.phx.gbl...
Hi:

I would like to build a socket server application that is user
configurable using XML (app.config) and would like some guidance.

I already have a single socket server working but would like to convert
this to a multi-socket application

I would like to specify in the app.config one or more socket, buffer size
& the business layer object/class to use when a message is received on
each socket

Any help will be appreciated.

Thanks

Winston

Nov 17 '05 #3
I am using Asynchronous Sockets. How do I call different objects based on
App.config xml settings?

Regards

Winston

"Winston Nimchan" <wi*************@trinsys.com> wrote in message
news:eO**************@TK2MSFTNGP14.phx.gbl...
Hi:

I would like to build a socket server application that is user
configurable using XML (app.config) and would like some guidance.

I already have a single socket server working but would like to convert
this to a multi-socket application

I would like to specify in the app.config one or more socket, buffer size
& the business layer object/class to use when a message is received on
each socket

Any help will be appreciated.

Thanks

Winston

Nov 17 '05 #4

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

Similar topics

4
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly...
4
by: 0to60 | last post by:
I have a question about socket programming in general. Exactly what happens behind the scenes when I one socket connects to a different socket in listen mode? Using the dotnet framework, I...
1
by: Sori Schwimmer | last post by:
Hi, I am working on an application which involves interprocess communication. More to the point, processes should be able to notify other processes about certain situations, so the "notifyees"...
7
by: Sharon | last post by:
Hi all, I've implemented a TCP server using the Socket async methods. When connecting to the server from 3 instances of hyper terminal, i've noticed that each of the newly created server sockets,...
15
by: nephish | last post by:
hey there, i have a script that waits for message packets from a data server over a socket. it goes a little like this: while 1: x+=1 databack = sockobj.recv(158) if databack:
10
by: David | last post by:
I have googled to no avail on getting specifically what I'm looking for. I have found plenty of full blown apps that implement some type of file transfer but what I'm specifcally looking for is an...
2
by: apollo135 | last post by:
Dear All, Could someone help and tell me how to handle multiple send and receive operations with udp sockets? In fact here is my problem: server.c is composing of serveral sub programs (the...
6
by: zaina | last post by:
hi everybody i am nwebie in this forum but i think it is useful for me and the member are helpful my project is about connecting client with the server to start exchanging messages between...
11
by: Krzysztof Retel | last post by:
Hi guys, I am struggling writing fast UDP server. It has to handle around 10000 UDP packets per second. I started building that with non blocking socket and threads. Unfortunately my approach...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.