(c net.Conn)
| 109 | } |
| 110 | |
| 111 | func processtcp(c net.Conn) { |
| 112 | defer c.Close() |
| 113 | |
| 114 | line, _ := bufio.NewReader(c).ReadString('\n') |
| 115 | log.Printf("tmsg: %d - %s / by: %s\n", len(line), string(line), c.RemoteAddr().String()) |
| 116 | // echo msg and rip back |
| 117 | fmt.Fprint(c, line) |
| 118 | fmt.Fprint(c, c.RemoteAddr()) |
| 119 | } |
no test coverage detected