This commit is contained in:
2021-09-26 16:45:30 +08:00
parent c951722f3d
commit f776f03ac8
+1
View File
@@ -49,6 +49,7 @@ func GoOnData(cstr *C.char, size C.int) {
//export GoOnInterest
func GoOnInterest(cstr *C.char) {
name := C.GoString(cstr)
common.LogWarn("onInterest: ", name)
// 接收到兴趣包,从缓存中取出一个IP包,封装到一个Data中发出
ipPacket := <-pktChan
sendData(ipPacket.RawPackets, name)