|
|
@ -171,13 +171,13 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) {
|
|
|
|
|
|
|
|
|
|
|
|
l.Printf(icslog.LOG_LEVEL_INFO, -1, "Connected from - %s", t.RemoteAddr())
|
|
|
|
l.Printf(icslog.LOG_LEVEL_INFO, -1, "Connected from - %s", t.RemoteAddr())
|
|
|
|
|
|
|
|
|
|
|
|
for {
|
|
|
|
// for {
|
|
|
|
statReads, rlen, rerr := t.ReadS(10137, bufend) // 여기서 전체 몇 byte씩 읽어서 로그를 찍을건지 알아야함
|
|
|
|
statReads, rlen, rerr := t.ReadS(10137, bufend) // 여기서 전체 몇 byte씩 읽어서 로그를 찍을건지 알아야함
|
|
|
|
if rerr != nil {
|
|
|
|
if rerr != nil {
|
|
|
|
if rerr.GetError() != io.EOF {
|
|
|
|
if rerr.GetError() != io.EOF {
|
|
|
|
l.Printf(icslog.LOG_LEVEL_ERROR, -1, "[Stat Command] ReadS Error! - %s[%d:%d]",
|
|
|
|
l.Printf(icslog.LOG_LEVEL_ERROR, -1, "[Stat Command] ReadS Error! - %s[%d:%d]",
|
|
|
|
rerr.GetError(), rlen, len(statReads))
|
|
|
|
rerr.GetError(), rlen, len(statReads))
|
|
|
|
break
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
fmt.Printf("Recved Stat Command(%s) %d \n", statReads, rlen)
|
|
|
|
fmt.Printf("Recved Stat Command(%s) %d \n", statReads, rlen)
|
|
|
@ -248,7 +248,7 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) {
|
|
|
|
fmt.Printf("stats- %s \n", statInfos.SttText)
|
|
|
|
fmt.Printf("stats- %s \n", statInfos.SttText)
|
|
|
|
fmt.Printf("stats- %s \n", statInfos.TtsText)
|
|
|
|
fmt.Printf("stats- %s \n", statInfos.TtsText)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) {
|
|
|
|
func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) {
|
|
|
|