renamed ReportEvent to ReportPacket

This commit is contained in:
2025-03-08 11:34:05 +09:00
parent 6e9887f726
commit 7b1d383813
3 changed files with 21 additions and 21 deletions

View File

@ -160,9 +160,9 @@ func (spc *ServerPeerConn) ReqStop() {
}
}
func (spc *ServerPeerConn) ReportEvent(event_type PACKET_KIND, event_data interface{}) error {
func (spc *ServerPeerConn) ReportPacket(packet_type PACKET_KIND, event_data interface{}) error {
switch event_type {
switch packet_type {
case PACKET_KIND_PEER_STARTED:
var ok bool
var pd *PeerDesc