示例#1
0
//UtpDestoy closs context
func (ctx *UtpContext) UtpDestoy() {
	C.utp_destroy(ctx.ctx)
	ctx.ctx = nil
	ctx.sockets = nil
	ctx.userdata = nil
}
示例#2
0
文件: utp.go 项目: jbenet/go-libutp
func (c *UTPContext) Close() {
	C.utp_destroy(c.raw)
}