"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/h323neg.h" between
h323plus-1_27_0.tar.gz and h323plus-1_27_1.tar.gz

About: H.323 Plus offers libraries for voice (VoIP) and videoconferencing using H.323.

h323neg.h  (h323plus-1_27_0):h323neg.h  (h323plus-1_27_1)
skipping to change at line 83 skipping to change at line 83
void Stop(); void Stop();
PBoolean HandleIncoming(const H245_MasterSlaveDetermination & pdu); PBoolean HandleIncoming(const H245_MasterSlaveDetermination & pdu);
PBoolean HandleAck(const H245_MasterSlaveDeterminationAck & pdu); PBoolean HandleAck(const H245_MasterSlaveDeterminationAck & pdu);
PBoolean HandleReject(const H245_MasterSlaveDeterminationReject & pdu); PBoolean HandleReject(const H245_MasterSlaveDeterminationReject & pdu);
PBoolean HandleRelease(const H245_MasterSlaveDeterminationRelease & pdu); PBoolean HandleRelease(const H245_MasterSlaveDeterminationRelease & pdu);
void HandleTimeout(PTimer &, INT); void HandleTimeout(PTimer &, INT);
PBoolean IsMaster() const { return status == e_DeterminedMaster; } PBoolean IsMaster() const { return status == e_DeterminedMaster; }
PBoolean IsDetermined() const { return state == e_Idle && status != e_Indete rminate; } PBoolean IsDetermined() const { return state == e_Idle && status != e_Indete rminate; }
void SetTryToBecomeSlave(bool val = true) { tryToBecomSlave = val; }
protected: protected:
PBoolean Restart(); PBoolean Restart();
enum States { enum States {
e_Idle, e_Outgoing, e_Incoming, e_Idle, e_Outgoing, e_Incoming,
e_NumStates e_NumStates
} state; } state;
#if PTRACING #if PTRACING
static const char * const StateNames[e_NumStates]; static const char * const StateNames[e_NumStates];
friend ostream & operator<<(ostream & o, States s) { return o << StateNames[ s]; } friend ostream & operator<<(ostream & o, States s) { return o << StateNames[ s]; }
#endif #endif
DWORD determinationNumber; DWORD determinationNumber;
unsigned retryCount; unsigned retryCount;
bool tryToBecomSlave;
enum MasterSlaveStatus { enum MasterSlaveStatus {
e_Indeterminate, e_DeterminedMaster, e_DeterminedSlave, e_Indeterminate, e_DeterminedMaster, e_DeterminedSlave,
e_NumStatuses e_NumStatuses
} status; } status;
#if PTRACING #if PTRACING
static const char * const StatusNames[e_NumStatuses]; static const char * const StatusNames[e_NumStatuses];
friend ostream & operator<<(ostream & o , MasterSlaveStatus s) { return o << StatusNames[s]; } friend ostream & operator<<(ostream & o , MasterSlaveStatus s) { return o << StatusNames[s]; }
#endif #endif
}; };
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)