Commit e314976b authored by Dominik Charousset's avatar Dominik Charousset

Merge branch 'master' into develop

parents 77bda8b5 a670c353
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* whereas each number is a two-digit decimal number without * whereas each number is a two-digit decimal number without
* leading zeros (e.g. 900 is version 0.9.0). * leading zeros (e.g. 900 is version 0.9.0).
*/ */
#define CAF_VERSION 1101 #define CAF_VERSION 1102
#define CAF_MAJOR_VERSION (CAF_VERSION / 10000) #define CAF_MAJOR_VERSION (CAF_VERSION / 10000)
#define CAF_MINOR_VERSION ((CAF_VERSION / 100) % 100) #define CAF_MINOR_VERSION ((CAF_VERSION / 100) % 100)
......
...@@ -16,7 +16,7 @@ The optional \lstinline^addr^ parameter can be used to listen only to the given ...@@ -16,7 +16,7 @@ The optional \lstinline^addr^ parameter can be used to listen only to the given
Otherwise, the actor accepts all incoming connections (\lstinline^INADDR_ANY^). Otherwise, the actor accepts all incoming connections (\lstinline^INADDR_ANY^).
\begin{lstlisting} \begin{lstlisting}
io::publish(self, 4242); publish(self, 4242);
self->become ( self->become (
on(atom("ping"), arg_match) >> [](int i) { on(atom("ping"), arg_match) >> [](int i) {
return make_message(atom("pong"), i); return make_message(atom("pong"), i);
...@@ -24,6 +24,12 @@ self->become ( ...@@ -24,6 +24,12 @@ self->become (
); );
\end{lstlisting} \end{lstlisting}
To close a socket, e.g., to allow other actors to be published at the port, the function \lstinline^unpublish^ can be used:
\begin{lstlisting}
void unpublish(caf::actor whom, uint16_t port)
\end{lstlisting}
\subsection{Connecting to Remote Actors} \subsection{Connecting to Remote Actors}
\begin{lstlisting} \begin{lstlisting}
......
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment