Lines Matching refs:r
217 RTMP *r = RTMP_Alloc(); in rtmp_setup_connection() local
218 if(!r) in rtmp_setup_connection()
221 RTMP_Init(r); in rtmp_setup_connection()
222 RTMP_SetBufferMS(r, DEF_BUFTIME); in rtmp_setup_connection()
223 if(!RTMP_SetupURL(r, data->state.url)) { in rtmp_setup_connection()
224 RTMP_Free(r); in rtmp_setup_connection()
227 conn->proto.rtmp = r; in rtmp_setup_connection()
234 RTMP *r = conn->proto.rtmp; in rtmp_connect() local
237 r->m_sb.sb_socket = (int)conn->sock[FIRSTSOCKET]; in rtmp_connect()
243 r->Link.protocol |= RTMP_FEATURE_WRITE; in rtmp_connect()
246 if(!(r->Link.lFlags & RTMP_LF_LIVE) && in rtmp_connect()
247 !(r->Link.protocol & RTMP_FEATURE_HTTP)) in rtmp_connect()
248 r->Link.lFlags |= RTMP_LF_BUFX; in rtmp_connect()
250 (void)curlx_nonblock(r->m_sb.sb_socket, FALSE); in rtmp_connect()
251 setsockopt(r->m_sb.sb_socket, SOL_SOCKET, SO_RCVTIMEO, in rtmp_connect()
254 if(!RTMP_Connect1(r, NULL)) in rtmp_connect()
258 r->m_bSendCounter = TRUE; in rtmp_connect()
269 RTMP *r = conn->proto.rtmp; in rtmp_do() local
271 if(!RTMP_ConnectStream(r, 0)) in rtmp_do()
298 RTMP *r = conn->proto.rtmp; in rtmp_disconnect() local
301 if(r) { in rtmp_disconnect()
303 RTMP_Close(r); in rtmp_disconnect()
304 RTMP_Free(r); in rtmp_disconnect()
313 RTMP *r = conn->proto.rtmp; in rtmp_recv() local
318 nread = RTMP_Read(r, buf, curlx_uztosi(len)); in rtmp_recv()
320 if(r->m_read.status == RTMP_READ_COMPLETE || in rtmp_recv()
321 r->m_read.status == RTMP_READ_EOF) { in rtmp_recv()
335 RTMP *r = conn->proto.rtmp; in rtmp_send() local
341 num = RTMP_Write(r, (char *)buf, curlx_uztosi(len)); in rtmp_send()