MCPcopy
hub / github.com/davyxu/cellnet / protectedSendMessage

Method protectedSendMessage

peer/tcp/session.go:167–177  ·  view source on GitHub ↗
(ev cellnet.Event)

Source from the content-addressed store, hash-verified

165}
166
167func (self *tcpSession) protectedSendMessage(ev cellnet.Event) {
168
169 defer func() {
170 if err := recover(); err != nil {
171 log.Errorf("IO send panic: %s %s", err, cellnet.MessageToName(ev.Message()))
172 }
173
174 }()
175
176 self.SendMessage(ev)
177}
178
179// 发送循环
180func (self *tcpSession) sendLoop() {

Callers 1

sendLoopMethod · 0.95

Calls 3

MessageToNameFunction · 0.92
SendMessageMethod · 0.80
MessageMethod · 0.65

Tested by

no test coverage detected