libjingle_thread_socket
2014-11-01 16:11:53 1 举报
Libjingle 线程和网络模型的类图
作者其他创作
大纲/内容
PhysicalSocket
- s_: SOCKET...
+ Create()
Dispatcher
+ GetRequestdEvent():uint32+ OnPreEvent()+ OnEvent
SocketDispatcher
- id_: int
+ Create()+ Initialize()
Message
+ message_id: uint32+ phandler: MessageHandler*+ pdata: MessageData*
+ Match()
EventDispatcher
- hev_: WSAEVENT (win_os)
+ Signal()
Thread
- thread_...
+ Start()+ Stop()+ Run()....
PhyscialSocketServer
- dispatchers_: vector- signal_wakeup_: Signaler*...
+ Add()+ Remove()...
Socket
+ Bind()+ Connect()+ Send()+ SendTo()+ Recv()+ RecvFrom()+ Close()...
Signaler
MessageQueue
- msgq_: std::List- dmsgq_: PriorityQueue- ss_: SocketServer*- crit_: CriticalSection...
+ Get()+ Post()+ PosetDelayed()+ Clear()+ Dispatch()...
SocketServer
+ SetMessageQueue()+ Wait()+ Wakeup()
XxxSocketServer
MessageHandler
+ OnMessage(Message* msg)
SocketFactory
+ CreateSocket() : Socket*+ CreateAsyncSocket() : AsyncSocket*
AsyncSocket
+ SignalReadEvent()+ SignalWriteEvent()+ SignalCloseEvent()+ SignalCloseEvent()
收藏
0 条评论
下一页