![]() |
InfiniSQL
v0.1.2-alpha
Massive Scale Transaction Processing
|
execute Listener actor More...
#include <Listener.h>

Public Member Functions | |
| Listener (Topology::partitionAddress *myIdentityArg) | |
| virtual | ~Listener () |
| int | startsocket (string &node, string &service) |
| create listening socket More... | |
Public Attributes | |
| class Mboxes | mboxes |
| Topology::partitionAddress | myIdentity |
| class Topology | myTopology |
execute Listener actor
| myIdentityArg | how to identify this |
Definition at line 46 of file Listener.h.
| Listener::Listener | ( | Topology::partitionAddress * | myIdentityArg) |
Definition at line 41 of file Listener.cc.
References Topology::partitionAddress::address, connectionsMutex, Topology::partitionAddress::epollfd, LISTENER_NONE, LISTENER_PG, LISTENER_RAW, listenerTypes, logfile, mboxes, myIdentity, myTopology, Topology::addressStruct::nodeid, Mboxes::nodeid, Topology::partitionAddress::nodes, NUMSOCKETS, Topology::numtransactionagents, MboxProducer::sendMsg(), Topology::partitionAddress::services, socketAffinity, startsocket(), TOPIC_SOCKET, TOPIC_SOCKETCONNECTED, Mboxes::transactionAgentPtrs, and Mboxes::update().

|
virtual |
Definition at line 197 of file Listener.cc.
| int Listener::startsocket | ( | string & | node, |
| string & | service | ||
| ) |
create listening socket
| node | hostname or ipv4 address |
| service | TCP port or service name |
< TODO: handle listener failure
Definition at line 211 of file Listener.cc.
References logfile.
Referenced by Listener().

| class Mboxes Listener::mboxes |
Definition at line 63 of file Listener.h.
Referenced by Listener().
| Topology::partitionAddress Listener::myIdentity |
Definition at line 64 of file Listener.h.
Referenced by Listener().
| class Topology Listener::myTopology |
Definition at line 65 of file Listener.h.
Referenced by Listener().