def create_requester(): receiver_ip, receiver_port = constants.get_server_ip_port() if "" == receiver_ip: sender = None else: sender = video_sender.RTPPacketTCPSender(receiver_ip, port=receiver_port) return sender
def create_sender(): receiver_ip, receiver_port = constants.get_server_ip_port() if "" == receiver_ip: sender = None else: sender = frame_sender.FrameSender(receiver_ip, port=receiver_port) return sender
def create_publisher(): subscriber_ip, subscriber_port = constants.get_server_ip_port() topic = constants.get_publish_topic() if "" == subscriber_ip: publisher = None elif "" == topic: publisher = video_publisher.RTPPacketPublisher(subscriber_ip, port=subscriber_port) else: publisher = video_publisher.RTPPacketPublisher(subscriber_ip, port=subscriber_port, topic=topic) return publisher