thread handling in .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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.
 
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/vbrkit/faq/#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.
 
=?Utf-8?B?U2VyZ2UgY2FsZGVyYXJh?= said:
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
 
Back
Top