Example #1
0
//UtpDestoy closs context
func (ctx *UtpContext) UtpDestoy() {
	C.utp_destroy(ctx.ctx)
	ctx.ctx = nil
	ctx.sockets = nil
	ctx.userdata = nil
}
Example #2
0
func (c *UTPContext) Close() {
	C.utp_destroy(c.raw)
}