Skip to content

Commit

Permalink
readme: update the "Transfer Modes" section
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk authored Dec 31, 2024
1 parent bba7093 commit 8a4c178
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ built on a client-server model and uses separate connections for transferring co

The transfer mode determines how the data connection is established.

- In **active mode**, the client uses the control connection to send the server the IP address and port number on which
the client accepts incoming data connections. The server then uses this information to open a data connection.
- In **passive mode**, the client uses the control connection to request from the server the IP address and port number
on which the server accepts incoming data connections. The client then uses this information to open a data connection.
This mode can be used in situations where the client cannot accept incoming connections (firewall, NAT).
- **Active mode:** The client uses the control connection to send the server its own IP address and a port number where
it will accept incoming data connections. The server uses this information to initiate and open a data connection to the client.
- **Passive mode:** The client uses the control connection to request the server's IP address and a port number where
the server will accept incoming data connections. The client then uses this information to initiate and open a data
connection to the server. This mode is useful in scenarios where the client is unable to accept incoming connections,
such as when operating behind a firewall or NAT.

### Transfer Types

Expand Down

0 comments on commit 8a4c178

Please sign in to comment.