From c4ffab658f422e84259a0a9769f0003b33a013bd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 May 2022 15:00:02 +0300 Subject: Netlib_OpenConnection - finally old stupid structure NETLIBOPENCONNECTION died and converted into a set of parameters + code cleaning --- protocols/Facebook/src/server.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'protocols/Facebook/src') diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index caffa475a7..5b0a15ee13 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -402,11 +402,7 @@ LBL_Begin: } // connect to MQTT server - NETLIBOPENCONNECTION nloc = {}; - nloc.szHost = "mqtt.facebook.com"; - nloc.wPort = 443; - nloc.flags = NLOCF_SSL | NLOCF_V2; - m_mqttConn = Netlib_OpenConnection(m_hNetlibUser, &nloc); + m_mqttConn = Netlib_OpenConnection(m_hNetlibUser, "mqtt.facebook.com", 443, 0, NLOCF_SSL); if (m_mqttConn == nullptr) { debugLogA("connection failed, exiting"); ConnectionFailed(); -- cgit v1.2.3