Skip to content

Commit

Permalink
Refs 12349: Update fds help
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Aug 12, 2021
1 parent 0db3853 commit 460f8e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 8 additions & 2 deletions tools/fds/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ General options:
-i --server-id Mandatory unique server identifier. Specifies zero based
server position in ROS_DISCOVERY_SERVER environment variable.

-l --ip-address Server interface chosen to listen the clients. Defaults
to any (0.0.0.0)
-l --ip-address IPv4 address chosen to listen the clients. Defaults
to any (0.0.0.0). Instead of an address, a name can
be specified.

-p --port UDP port chosen to listen the clients. Defaults to 11811

Expand Down Expand Up @@ -41,3 +42,8 @@ Examples:

$ fast-discovery-server -i 1 -l 172.30.144.1 -p 12345 -b

5. Launch a default server with id 0 (first on ``ROS_DISCOVERY_SERVER``)
listening on localhost with UDP port 14520. Only localhost clients
can reach the server defining as `ROS_DISCOVERY_SERVER=localhost:14520`.

$ fastdds discovery -i 0 -l localhost -p 14520
12 changes: 9 additions & 3 deletions tools/fds/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ const option::Descriptor usage[] = {
"\t server position in ROS_DISCOVERY_SERVER environment variable.\n" },

{ IPADDRESS, 0, "l", "ip-address", Arg::required,
" -l \t--ip-address Server interface chosen to listen the clients. Defaults\n"
"\t to any (0.0.0.0)\n" },
" -l \t--ip-address IPv4 address chosen to listen the clients. Defaults\n"
"\t to any (0.0.0.0). Instead of an address, a name can\n"
"\t be specified."},

{ PORT, 0, "p", "port", Arg::check_udp_port,
" -p \t--port UDP port chosen to listen the clients. Defaults to 11811\n" },
Expand Down Expand Up @@ -89,7 +90,12 @@ const option::Descriptor usage[] = {
"\t listening on 172.30.144.1 with UDP port 12345 and provided with a\n"
"\t backup file. If the server crashes it will automatically restore its\n"
"\t previous state when reenacted.\n\n"
"\t$ " FAST_SERVER_BINARY " -i 1 -l 172.30.144.1 -p 12345 -b" },
"\t$ " FAST_SERVER_BINARY " -i 1 -l 172.30.144.1 -p 12345 -b\n\n"

"\t5. Launch a default server with id 0 (first on ROS_DISCOVERY_SERVER)\n"
"\t listening on localhost with UDP port 14520. Only localhost clients\n"
"\t can reach the server defining as ROS_DISCOVERY_SERVER=localhost:14520.\n\n"
"\t$ " FAST_SERVER_BINARY " -i 0 -l localhost -p 14520"},

{ 0, 0, 0, 0, 0, 0 }
};
Expand Down

0 comments on commit 460f8e3

Please sign in to comment.