By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,985 Members | 1,712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,985 IT Pros & Developers. It's quick & easy.

thread handling in .NET

P: n/a
dear all

I need to create a module which will handle a TCP comunication. In that module i need to create a thread which will only taking care of polling an open listen port for incoming data. As soon as data arrived the thread should send an event to the main application

does any one have experience on that or can guide me how to start

thanks for your hel
regard
serge
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Look here, enough thread examples to get you started

http://www.c-sharpcorner.com/Multithreading.asp

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Serge calderara" <an*******@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
dear all,

I need to create a module which will handle a TCP comunication. In that module i need to create a thread which will only taking care of polling an
open listen port for incoming data. As soon as data arrived the thread
should send an event to the main application.
does any one have experience on that or can guide me how to start?

thanks for your help
regards
serge

Jul 21 '05 #2

P: n/a
Cor
Hi Serge,

VB or C#

Because in this VB resource kit are on both of your questions answers
(But if not, there is only a very slight difference between C# and VB.net)

VB has more commands (functions/methods), but VB has for a lot of things 2
commands and then there is almost always an equivalent that is also in C#.

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing it

http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

I hope this helps a little bit?

Cor

Cor
I need to create a module which will handle a TCP comunication. In that module i need to create a thread which will only taking care of polling an
open listen port for incoming data. As soon as data arrived the thread
should send an event to the main application.
does any one have experience on that or can guide me how to start?

Jul 21 '05 #3

P: n/a
=?Utf-8?B?U2VyZ2UgY2FsZGVyYXJh?= <an*******@discussions.microsoft.com>
wrote in news:DF**********************************@microsof t.com:
I need to create a module which will handle a TCP comunication. In that
module i need to create a thread which will only taking care of polling
an open listen port for incoming data. As soon as data arrived the
thread should send an event to the main application.


http://www.indyproject.org/indy.html

Indy - its Open source and free.

TIdTCPServer does exactly this for you.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.