#include <BinaryProtocol.h>
Производные классы:BinaryProtocolClient и BinaryProtocolServer.
Открытые члены | |
| BibaryPacket | readPacket () |
| ssize_t | readToBuffer (void *buffer, size_t length) |
| BinaryProtocol (BaseConfigFile *cf) | |
| void | disconnect () |
| void | sendBuffer (const void *buffer, int length) |
| void | sendPacket (BibaryPacket packet) |
| void | addHandler (BPHandler *h) |
| void | setFillBuffer (void *buffer, size_t size, unsigned long int pktID) |
| void | waiteFillBuffer (unsigned int pktID) |
| void | setSendBufferData (const void *buffer, size_t size, unsigned long int pktID) |
| void | startTread (int skt_id) |
| virtual | ~BinaryProtocol () |
Открытые статические члены | |
| static unsigned long int | getNextId () |
Защищенные члены | |
| void | parse () |
Защищенные данные | |
| pthread_mutex_t | exit_mutex |
| pthread_mutex_t | cs_mutex4 |
| pthread_mutex_t | cs_mutex3 |
| pthread_attr_t | attr |
| size_t | max_pktsize |
| BaseConfigFile * | cf |
| int | skt_id |
| pthread_t | clientThread |
| pthread_t | binThread |
| list< BPHandler * > | handlers |
| map< unsigned long int, BufferFiller * > | bufferFillers |
Друзья | |
| void * | bin_client_threadFunc (void *clnt) |
| void * | binary_threadFunc (void *clnt) |
См. определение в файле BinaryProtocol.h строка 25
| BinaryProtocol::BinaryProtocol | ( | BaseConfigFile * | cf | ) |
| BinaryProtocol::~BinaryProtocol | ( | ) | [virtual] |
См. определение в файле BinaryProtocol.cpp строка 254
| void BinaryProtocol::addHandler | ( | BPHandler * | h | ) | [inline] |
См. определение в файле BinaryProtocol.h строка 49
| void BinaryProtocol::disconnect | ( | ) | [inline] |
См. определение в файле BinaryProtocol.h строка 44
| unsigned long int BinaryProtocol::getNextId | ( | ) | [static] |
| void BinaryProtocol::parse | ( | ) | [protected] |
!!!!!pthread_mutex_unlock(itBF->second.mutex); pthread_mutex_destroy(&itBF->second.mutex); //===
См. определение в файле BinaryProtocol.cpp строка 172


| BibaryPacket BinaryProtocol::readPacket | ( | ) |
| ssize_t BinaryProtocol::readToBuffer | ( | void * | buffer, | |
| size_t | length | |||
| ) |
| void BinaryProtocol::sendBuffer | ( | const void * | buffer, | |
| int | length | |||
| ) |
| void BinaryProtocol::sendPacket | ( | BibaryPacket | packet | ) |
| void BinaryProtocol::setFillBuffer | ( | void * | buffer, | |
| size_t | size, | |||
| unsigned long int | pktID | |||
| ) |
!!!bf->mutex=(pthread_mutex_t*)malloc(sizeof(pthread_mutex_t));
!!!!pthread_mutex_trylock(&bf.mutex);
См. определение в файле BinaryProtocol.cpp строка 111

| void BinaryProtocol::setSendBufferData | ( | const void * | buffer, | |
| size_t | size, | |||
| unsigned long int | pktID | |||
| ) |
| void BinaryProtocol::startTread | ( | int | skt_id | ) |
| void BinaryProtocol::waiteFillBuffer | ( | unsigned int | pktID | ) |
| void* bin_client_threadFunc | ( | void * | clnt | ) | [friend] |
См. определение в файле BinaryProtocolClient.cpp строка 10
| void* binary_threadFunc | ( | void * | clnt | ) | [friend] |
См. определение в файле BinaryProtocol.cpp строка 231
pthread_attr_t BinaryProtocol::attr [protected] |
См. определение в файле BinaryProtocol.h строка 30
pthread_t BinaryProtocol::binThread [protected] |
См. определение в файле BinaryProtocol.h строка 35
map<unsigned long int,BufferFiller*> BinaryProtocol::bufferFillers [protected] |
См. определение в файле BinaryProtocol.h строка 38
BaseConfigFile* BinaryProtocol::cf [protected] |
См. определение в файле BinaryProtocol.h строка 32
pthread_t BinaryProtocol::clientThread [protected] |
См. определение в файле BinaryProtocol.h строка 34
pthread_mutex_t BinaryProtocol::cs_mutex3 [protected] |
См. определение в файле BinaryProtocol.h строка 29
pthread_mutex_t BinaryProtocol::cs_mutex4 [protected] |
См. определение в файле BinaryProtocol.h строка 28
pthread_mutex_t BinaryProtocol::exit_mutex [protected] |
См. определение в файле BinaryProtocol.h строка 27
list<BPHandler*> BinaryProtocol::handlers [protected] |
См. определение в файле BinaryProtocol.h строка 37
size_t BinaryProtocol::max_pktsize [protected] |
См. определение в файле BinaryProtocol.h строка 31
int BinaryProtocol::skt_id [protected] |
См. определение в файле BinaryProtocol.h строка 33
1.7.1