|
|
@ -102,7 +102,7 @@ func ListenStatMNG() (icserr *icserror.IcsError) {
|
|
|
|
statLocalAddr := icsnet.NewNetAddrWithIPAddr(statLocalAddrStr)
|
|
|
|
statLocalAddr := icsnet.NewNetAddrWithIPAddr(statLocalAddrStr)
|
|
|
|
|
|
|
|
|
|
|
|
var cmdErr *icserror.IcsError
|
|
|
|
var cmdErr *icserror.IcsError
|
|
|
|
statTCP, cmdErr := icsnet.ListenAndServeTCP(&statLocalAddr, nil, "\r\n\r\n", StatsCommandVG)
|
|
|
|
statTCP, cmdErr := icsnet.ListenAndServeTCP(&statLocalAddr, nil, "\r\n", StatsCommandVG)
|
|
|
|
if cmdErr != nil {
|
|
|
|
if cmdErr != nil {
|
|
|
|
l.Printf(icslog.LOG_LEVEL_FATAL, -1, "%s", cmdErr.GetError())
|
|
|
|
l.Printf(icslog.LOG_LEVEL_FATAL, -1, "%s", cmdErr.GetError())
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
@ -124,7 +124,7 @@ func ListenStatMNG1() (icserr *icserror.IcsError) {
|
|
|
|
statLocalAddr := icsnet.NewNetAddrWithIPAddr(statLocalAddrStr)
|
|
|
|
statLocalAddr := icsnet.NewNetAddrWithIPAddr(statLocalAddrStr)
|
|
|
|
|
|
|
|
|
|
|
|
var cmdErr *icserror.IcsError
|
|
|
|
var cmdErr *icserror.IcsError
|
|
|
|
statTCP, cmdErr := icsnet.ListenAndServeTCP(&statLocalAddr, nil, "\r\n\r\n", StatsCommandVA)
|
|
|
|
statTCP, cmdErr := icsnet.ListenAndServeTCP(&statLocalAddr, nil, "\r\n", StatsCommandVA)
|
|
|
|
if cmdErr != nil {
|
|
|
|
if cmdErr != nil {
|
|
|
|
l.Printf(icslog.LOG_LEVEL_FATAL, -1, "%s", cmdErr.GetError())
|
|
|
|
l.Printf(icslog.LOG_LEVEL_FATAL, -1, "%s", cmdErr.GetError())
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|