Created
March 10, 2015 02:02
-
-
Save eventhelix/305afb09e4e5f40bb150 to your computer and use it in GitHub Desktop.
Monolithic Digital Trunk Class http://www.eventhelix.com/realtimemantra/object_oriented/object_design_tips_2.htm
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
class DigitTrunk | |
{ | |
Status m_status; | |
Timeslot m_timeslot[MAX_TIMESLOT_PER_TRUNK]; | |
int m_signalingTimeslot; | |
int m_signalingStatus; | |
. . . | |
int m_errorThreshold; | |
int m_localErrorRate; | |
int m_remoteErrorRate; | |
. . . | |
public: | |
. . . | |
void HandleSignalingRequest(); | |
void SendSignalingIndication(); | |
. . . | |
void HandleRemoteError(); | |
void HandleLocalError(); | |
. . . | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment