Skip to content

Commit

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

The transfer mode determines how the data connection is established.

- **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,
#### 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 2ce73cf

Please sign in to comment.