I always confuse these two concepts. How do you determine which side is the server and which side is the client? Is it determined by sending or receiving data? (Assuming the connection goes one way)
Thank,
In TCP, it is determined by the party that initiated the connection. The client initiates the connection, and the server listens and accepts the connection. Once connected, data can flow in both directions.
Definitions:
Server-side , - . , , ββ -, , .
Client-side , - . , , -, .
, , .
, , , , .