Click here to Skip to main content
11,576,993 members (59,357 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Sockets
Hi friends,
I am onto one project in which I have to make connection between One WebApplication and multiple Client Devices. Now for every Device I am making a thread (TcpListener object) which listens for that Device . This is making my WebApplication at server very bulky. For every client I am making one thread. Suppose if 100 such devices, then 100 threads.
Is there any other approach ...???
Posted 2-Jan-13 18:07pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Yes, just use a web service.

That is all.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


As you mentioned multiple devices, so you can go for WCF with net TCP binding.
Because in net TCP binding you can get a callback.[^]

using callback event you don't need monitor using thread. Smile | :)
Robin Purbia at 3-Jan-13 0:44am
Okay... I'll study this ... and hope this helps me ... thanks
Robin Purbia at 8-Jan-13 4:22am
Please give me any appropriate example of WCF netTCP binding ....... Thanks in advance...
Suvabrata Roy at 8-Jan-13 5:36am

Article :

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 155
1 Sergey Alexandrovich Kryukov 131
2 OriginalGriff 115
3 Afzaal Ahmad Zeeshan 95
4 Abhinav S 90
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 631
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 365

Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100