Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented logging and default_protocol
libcppa emits log4j compatible output now to make use of available tools; middleman uses `continuable_writer` and `continuable_reader` interfaces only; ´default_protocol´ encapsulates libcppa's binary protocol now; `remote_actor` checks wheter a previous connection to the host already exists; actor proxies are stored as weak pointers in peers, fixes #75; `default_peer` created with `remote_actor` close connection on last proxy exit; poll and epoll share meta data implementation and event-interface; no global proxy cache, belongs to `protocol`/`actor_addressing` now; new configure option: `--with-cppa-log-level`; `to_string` is no longer a template (enables proper overload resolution)
- Loading branch information
Showing
49 changed files
with
2,564 additions
and
1,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,78 @@ | |||
/******************************************************************************\ | |||
* ___ __ * | |||
* /\_ \ __/\ \ * | |||
* \//\ \ /\_\ \ \____ ___ _____ _____ __ * | |||
* \ \ \ \/\ \ \ '__`\ /'___\/\ '__`\/\ '__`\ /'__`\ * | |||
* \_\ \_\ \ \ \ \L\ \/\ \__/\ \ \L\ \ \ \L\ \/\ \L\.\_ * | |||
* /\____\\ \_\ \_,__/\ \____\\ \ ,__/\ \ ,__/\ \__/.\_\ * | |||
* \/____/ \/_/\/___/ \/____/ \ \ \/ \ \ \/ \/__/\/_/ * | |||
* \ \_\ \ \_\ * | |||
* \/_/ \/_/ * | |||
* * | |||
* Copyright (C) 2011, 2012 * | |||
* Dominik Charousset <dominik.charousset@haw-hamburg.de> * | |||
* * | |||
* This file is part of libcppa. * | |||
* libcppa is free software: you can redistribute it and/or modify it under * | |||
* the terms of the GNU Lesser General Public License as published by the * | |||
* Free Software Foundation, either version 3 of the License * | |||
* or (at your option) any later version. * | |||
* * | |||
* libcppa is distributed in the hope that it will be useful, * | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * | |||
* See the GNU Lesser General Public License for more details. * | |||
* * | |||
* You should have received a copy of the GNU Lesser General Public License * | |||
* along with libcppa. If not, see <http://www.gnu.org/licenses/>. * | |||
\******************************************************************************/ | |||
|
|||
|
|||
#ifndef CPPA_ACTOR_PROXY_CACHE_HPP | |||
#define CPPA_ACTOR_PROXY_CACHE_HPP | |||
|
|||
#include "cppa/atom.hpp" | |||
#include "cppa/actor.hpp" | |||
#include "cppa/ref_counted.hpp" | |||
|
|||
namespace cppa { | |||
|
|||
class serializer; | |||
class deserializer; | |||
|
|||
/** | |||
* @brief Different serialization protocols have different representations | |||
* for actors. This class encapsulates a technology-specific | |||
* actor addressing. | |||
*/ | |||
class actor_addressing : public ref_counted { | |||
|
|||
public: | |||
|
|||
/** | |||
* @brief Returns the technology identifier of the implementation. | |||
* @note All-uppercase identifiers are reserved for libcppa's | |||
* builtin implementations. | |||
*/ | |||
virtual atom_value technology_id() const = 0; | |||
|
|||
/** | |||
* @brief Serializes @p ptr to @p sink according | |||
* to the implemented addressing. | |||
* @note Implementation should call {@link actor_registry::put()} | |||
* to be able to restore instances later on from registry. | |||
* @note Thi | |||
*/ | |||
virtual void write(serializer* sink, const actor_ptr& ptr) = 0; | |||
|
|||
/** | |||
* @brief Deserializes an actor from @p source according | |||
* to the implemented addressing. | |||
*/ | |||
virtual actor_ptr read(deserializer* source) = 0; | |||
|
|||
}; | |||
|
|||
} // namespace cppa::detail | |||
|
|||
#endif // CPPA_ACTOR_PROXY_CACHE_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.