车皮 发表于 2018-9-20 09:37:38

golang实现udp接入服务器

package udplotus  

  

import (  

"encoding/json"  
"log"
  
"net"
  
"strconv"
  
"time"
  
)
  

  
const (
  
proxy_timeout = 5
  
proxy_server= "127.0.0.1:1988"
  
msg_length    = 1024
  
)
  

  
type Request struct {
  
reqId      int
  
reqContent string
  
rspChan    chan
页: [1]
查看完整版本: golang实现udp接入服务器