Lines Matching refs:utp_socket
595 struct UTPSocket * utp_socket)
604 assert( (socket < 0) == (utp_socket != NULL) );
623 io->utp_socket = utp_socket;
631 dbgmsg( io, "socket is %d, utp_socket is %p", socket, utp_socket );
641 UTP_SetSockopt( utp_socket, SO_RCVBUF, UTP_READ_BUFFER_SIZE );
643 UTP_SetCallbacks( utp_socket,
648 UTP_Connect( utp_socket );
662 struct UTPSocket * utp_socket )
668 fd, utp_socket );
681 struct UTPSocket * utp_socket = NULL;
688 utp_socket = tr_netOpenPeerUTPSocket( session, addr, port, isSeed );
690 if( !utp_socket ) {
695 if( fd < 0 && utp_socket == NULL )
699 torrentHash, false, isSeed, fd, utp_socket );
806 if( io->utp_socket ) {
807 UTP_SetCallbacks( io->utp_socket,
810 UTP_Close( io->utp_socket );
812 io->utp_socket = NULL;
1227 if( io->utp_socket != NULL ) /* utp peer connection */
1233 UTP_RBDrained( io->utp_socket );
1276 if( io->utp_socket != NULL ) /* utp peer connection */
1278 UTP_Write( io->utp_socket, howmuch );