TCP Multi Connection
TCP Multi Connection
Multiclient connection in
TCP
Program Studi Teknik Informatika
Fakultas Teknik – Universitas Surabaya
Outline
1. Common Technical Procedure to develop “Multiclient
Connection in TCP (one server and many clients)”
2. Case study: Simple Chat TCP
1. Technical Procedures
2. Code Implementation
Multiclient Connection in TCP
Today, we are going to combine 2 concepts between: TCP and
multithreading
● TCP Communication is implemented for transferring data from
another device over network.
● Multithreading concept is implemented to handle many requests
from many clients at the same time.
Multiclient Connection in TCP Concept
Architecture Software
Server
(HTTP/TCP/etc.)
Common Procedure: TCP Multiclient
Step-by-step:
1. Make Client-Server Projects (2 projects)
2. Make a new Class in Server side (as Controller) to send and
receive message from client. This class extends Thread or
Implements Runnable.
Please read carefully the Implementation TCP communication below
TCP Single Client vs TCP Multiclient
Server Server