From de4e673e940c949b9a0a64d5e1cd0a430c1a4971 Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 20 Jul 2018 01:49:03 +0930 Subject: [PATCH] Started writing socksSetup func --- rtmp/rtmp.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 47d62f43..6c0c9894 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -476,6 +476,13 @@ func rtmpSetupUrl(r *C.RTMP, u string) int32 { return 1 } +func socksSetup(r *RTMP, sockshost *AVal) { + if sockshost.av_len != 0 { + socksport := strchr((*byte)(sockshost.av_val), ':') + } + +} + func endSession(rtmp *C.RTMP) uint32 { if rtmp == nil { return 3