added Close() methods to the structs

This commit is contained in:
2026-09-15 17:41:11 +01:00
parent a7fbf74f0a
commit 67b9cf617c
7 changed files with 63 additions and 72 deletions
+8
View File
@@ -20,6 +20,14 @@ func NewOgUDPReader(ip string, port int) (*OgUDPReader, error) {
}, nil
}
func (ogr *OgUDPReader) Close() error {
if ogr.udpConnection != nil {
return ogr.udpConnection.Close()
}
return nil
}
func (ogr *OgUDPReader) Reset() error {
// NOTE: what to implement here?
return nil