for문 제거

main
JungJun 2 years ago
parent 6469db4e38
commit 0e94ecaf5a

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

Loading…
Cancel
Save