From 504c79ab278723d8a50127b4737d9d8c03f0d655 Mon Sep 17 00:00:00 2001 From: saxon Date: Sat, 11 Aug 2018 02:24:50 +0930 Subject: [PATCH] Starting to port SocksNegotiate --- rtmp/rtmp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index bdb873b4..3bc7df81 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1076,6 +1076,7 @@ func C_RTMP_Connect0(r *C.RTMP, service *C.sockaddr) int { log.Println("C_RTMP_Connect0: socks negotiation.") } + // TODO: port this if C.SocksNegotiate(r) == 0 { log.Println("C_RTMP_Connect0: SOCKS negotiation failed.") return 0 @@ -1103,6 +1104,10 @@ func C_RTMP_Connect0(r *C.RTMP, service *C.sockaddr) int { return 1 } +// int SocksNegotiate(RTMP* r); +// rtmp.c +1062 + +// TODO: find location in c file func SET_RCVTIMEO(tv *int32, s int32) { *tv = s * 1000 }