Structure of Daemon or GUI Program
----------------------------------
_ Interface - Command Line Parameters & Config File
__ Command Line Parameters
__ Config File Format
_ Interface - Internet Protocol
__ Request
__ Response
__ Packet Flow Chart
_ Interface - GUI
__ GUI design and Operate Steps or Senarios
_ Objects, Data Structures & Global Variables
__ Config
___ g_Config
____ struct Config
__ UI
___ g_UI
____ struct UI
__ Process
___ g_Process
____ struct Process
__ Thread
____ g_Thread
_____ struct Thread
__ Protocol
___ Connection
____ g_Connection
___ Request
____ g_Request
___ Response
____ g_Response
__ Data File
___ g_DataFile
____ struct DataFile
__ Database Connection
___ g_Connection
____ struct Connection
__ Log
_ Program Flow Chart
__ Read Configs from Command Line & Config File
__ Main Loop
___ Process System Signal
____ SIGHUP
____ SIGTERM
____ SIGKILL
___ Process GUI Event
____ Button Click
____ Mouse Move
____ GUI Resize
____ Timer
___ Process Protocol Request
____ Receive Data
____ Analyze Request Fields & Fill Data Structure
____ End Receive & Send Response