mirror of
https://github.com/smallnest/rpcx.git
synced 2025-09-26 20:21:14 +08:00
14 lines
239 B
Go
14 lines
239 B
Go
// +build kcp
|
|
|
|
package client
|
|
|
|
import (
|
|
"net"
|
|
|
|
kcp "github.com/xtaci/kcp-go"
|
|
)
|
|
|
|
func newDirectKCPConn(c *Client, network, address string) (net.Conn, error) {
|
|
return kcp.DialWithOptions(address, c.option.Block.(kcp.BlockCrypt), 10, 3)
|
|
}
|