libjingle_tcp_udp
2014-11-01 16:56:02 3 举报
Libjingle Tcp/Udp
作者其他创作
大纲/内容
AsyncTcpSocketBase
- ConnectSocket()- SendRaw()- FlushOutBuffer()- AppendToOutBuffer()...- OnConnectEvent()- OnReadEvent()- OnWriteEvent()- OnCloseEvent()+ Send() = 0+ ProcessInput() = 0+ HandleIncomingConnection() = 0
AsyncSocket
AsyncTcpSocket
+ Create()+ Send()+ ProcessInput()+ HandleIncomingConnection()
AsyncPacketSocket
+ Send()+ SendTo()+ Close()...+ SignalReadPacket()+ SignalReadyToSend()+ SignalAddressReady()+ SignalConnect()+ SignalClose()+ SignalNewConnection()
AsyncUdpSocket
- socket_:scoped_ptr- buf_: char*- size_: size_t
+ Create()- OnReadEvent()- OnWriteEvent()
自己的实现。库实现的 AsyncTcpSocket 内部对发送接收的数据又进行了一层封装和反封装,所以不好直接拿来用。
收藏
0 条评论
下一页