kill message to each ports of the search range. If it manage to close the
socket after sending the message without being interrupted by an exception,
it can assume that it killed the server and stop searching.
-\dontinclude 8-exceptions.c
+\dontinclude 08-exceptions.c
\skip port=3000
\until end_of_loop
look like when it's not catched), we add a potential command line argument
to the server, asking it to cheat and to not open its port within the search
range but elsewhere:
-\dontinclude 8-exceptions.c
+\dontinclude 08-exceptions.c
\skip strcmp
\until gras_socket_my_port
\until }
no idea of how to retrieve the call stack of the current process under the
other operating systems. But help is always welcome in this area too ;)
-\include 8-exceptions.output
+\include 08-exceptions.output
The complete program reads:
-\include 8-exceptions.c
+\include 08-exceptions.c
Go to \ref GRAS_tut_tour_rpc