#include <EpiLocalNode.hpp>
Inheritance diagram for epi::node::LocalNode:

Public Member Functions | |
| LocalNode (const std::string aNodeId) throw (EpiBadArgument, EpiConnectionException, EpiException) | |
| LocalNode (const std::string aNodeId, const std::string aCookie) throw (EpiBadArgument, EpiConnectionException, EpiException) | |
| LocalNode (const std::string aNodeName, const std::string aCookie, ErlangTransport *transport) throw (EpiBadArgument, EpiConnectionException) | |
| ErlPid * | createPid () |
| ErlPort * | createPort () |
| ErlRef * | createRef () |
| short | getCreation () const |
| Connection * | connect (const std::string node) throw (EpiConnectionException) |
| Connection * | connect (const std::string node, const std::string cookie) throw (EpiConnectionException) |
| Connection * | accept (long timeout=0) throw (EpiConnectionException) |
| Connection * | accept (const std::string cookie, long timeout=0) throw (EpiConnectionException) |
| void | publishPort () throw (EpiConnectionException) |
| void | unPublishPort () throw (EpiConnectionException) |
| MailBox * | newMailBox () |
| MailBox * | createMailBox (Connection *connection) |
Protected Member Functions | |
| void | init (const std::string aNodeId, const std::string aCookie, ErlangTransport *transport) throw (EpiException) |
Protected Attributes | |
| short | mCreation |
| unsigned int | mPidCount |
| unsigned int | mPortCount |
| unsigned int | mSerial |
| unsigned int | mRefId [3] |
| ErlangTransport * | mTransport |
Static Protected Attributes | |
| short | smCreationCounter = 0 |
|
|
Create a new node, using default cookie an any port
|
|
||||||||||||
|
Create a new node, using given cookie
|
|
||||||||||||||||
|
Create a new node, using given cookie
|
|
||||||||||||
|
Accept a connection from a client process using other cookie This method sets the socket to listen incoming connections.
|
|
|
Accept a connection from a client process. This method sets the socket to listen incoming connections.
|
|
||||||||||||
|
Set up a connection to an Erlang node, using other cookie
|
|
|
Set up a connection to an Erlang node, using the default cookie
|
|
|
Create a new MailBox with a new pid associated to the given connection: the sender of mailbox is connection and the receiver of connection is the mailbox |
|
|
Create a new unique pid |
|
|
Create a new unique port |
|
|
Create a new unique ref |
|
|
Get creation number FIXME: Where must be the creation number??? How does creation number work? EI documentation and code does not explain this :(. |
|
||||||||||||||||
|
Init counters for pids, ports and refs and the ErlangTransport to use |
|
|
Return new MailBox with a new pid. This mailbox has not a sender defined and must be set using setSender() |
|
|
Publish the node port |
|
|
Unpublish the node port |
1.3.4