473,322 Members | 1,778 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,322 software developers and data experts.

Sockets server multithread

hello
I need a sample of a server with multithreading accept connections with
sockets...

Have anyone?

Thanks,
Crirus
Nov 20 '05 #1
4 2190
On 2003-10-30, Crirus <Cr****@datagroup.ro> wrote:
hello
I need a sample of a server with multithreading accept connections with
sockets...

Have anyone?

Thanks,
Crirus


This kind of thing is best done using the asyncronous socket methods.
There is an example of creating a server in the Framework SDK docs that
would probably be useful to you.

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #2
I can bet there is.. have a link to it? :)

Crirus
"Tom Shelton" <to*@mtogden.com> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
On 2003-10-30, Crirus <Cr****@datagroup.ro> wrote:
hello
I need a sample of a server with multithreading accept connections with
sockets...

Have anyone?

Thanks,
Crirus


This kind of thing is best done using the asyncronous socket methods.
There is an example of creating a server in the Framework SDK docs that
would probably be useful to you.

--
Tom Shelton
MVP [Visual Basic]

Nov 20 '05 #3
On 2003-10-31, Crirus <Cr****@datagroup.ro> wrote:
I can bet there is.. have a link to it? :)

Crirus
"Tom Shelton" <to*@mtogden.com> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
On 2003-10-30, Crirus <Cr****@datagroup.ro> wrote:
> hello
> I need a sample of a server with multithreading accept connections with
> sockets...
>
> Have anyone?
>
> Thanks,
> Crirus
>
>


Sorry...

I would start here:

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

There are examples of an async client and server in the code samples
section.

--
Tom Shelton
MVP [Visual Basic]
Nov 20 '05 #4
OK, I've done that
Now I need a flood handler
You know, If someone keep pressed refresh browser button, I receive hunderts
of request that cant handle anyway because the client is closed and opened
on new refresh...there is a way to drop invalid requests?

Crirus
"Tom Shelton" <to*@mtogden.com> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
On 2003-10-31, Crirus <Cr****@datagroup.ro> wrote:
I can bet there is.. have a link to it? :)

Crirus
"Tom Shelton" <to*@mtogden.com> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
On 2003-10-30, Crirus <Cr****@datagroup.ro> wrote:
> hello
> I need a sample of a server with multithreading accept connections with > sockets...
>
> Have anyone?
>
> Thanks,
> Crirus
>
>

Sorry...

I would start here:

http://msdn.microsoft.com/library/de...consockets.asp
There are examples of an async client and server in the code samples
section.

--
Tom Shelton
MVP [Visual Basic]

Nov 20 '05 #5

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

Similar topics

1
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and establishes itself on port 9900. It then polls for...
14
by: jack | last post by:
At this link I have two c# projects, one is a client, the other is a server. Just point the ip address of the client at the server http://www.slip-angle.com/hosted/bug/ The server does...
0
by: r_obert | last post by:
Hello, I'm trying to create a worker thread for my VC++ program, and was wondering whether I should be linking with the Multithread /MT or Multithread DLL /MD option? I'm not quite sure, in...
4
by: zbcong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting for a...
2
by: zhebincong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting...
1
by: Adam Clauss | last post by:
I am (attempting) to move an existing socket application to use raw sockets. Right now, my application is essentially a port forwarder. Upon receiving a connection, it will open a connection to...
6
by: jmartin | last post by:
Hi, I have made a multithread version of a program (load a file into database), and with two processors I get the double of time in the multithread than in the process (unithread) version. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.