Is there any method to broadcast a signal or message in TCP? I know that for broadcasting UDP is used.
For example multiple clients connected with server and server sends a broadcast signal to all of connected clients at the same time. Is it possible using TCP?
Asked
Active
Viewed 237 times
2

Mat
- 202,337
- 40
- 393
- 406

Muhammad Umar
- 3,761
- 1
- 24
- 36
1 Answers
1
No, TCP is connection oriented and designed for single end to end communications.

C2H5OH
- 5,452
- 2
- 27
- 39
-
Ok then what i will do to handle this because i want to this in tcp? Any suggestion or method? – Muhammad Umar Apr 21 '12 at 13:35
-
@Umarniaz: [Use a different transport layer](http://www.zeromq.org). And, please, read its documentation before making any further questions. – C2H5OH Apr 21 '12 at 13:37
-
If you want to "broadcast" to a limited number of clients just send the message to each client on its own tcp connection, preferably using multithreading to minimize delays – mac Apr 21 '12 at 14:26