<reponame>entn-at/exkaldi-rt<filename>exkaldirt/transmit_server_test.py<gh_stars>0
import base
import transmit
import numpy as np

#############################
# exkaldirt.transmit.PacketReceiver
# is used to receive packet from remote host computer.
#############################

def test_receiver():

  # define a receiver, bind local host IP and a port
  receiver = transmit.PacketReceiver(bport=9509)

  # run
  receiver.start()
  receiver.wait()

  print( receiver.outPIPE.size() )
  #
  while True:
    if receiver.outPIPE.is_empty():
      break
    packet = receiver.outPIPE.get()
    print( packet.items() )

test_receiver()
    
import base
import transmit
import numpy as np

#############################
# exkaldirt.transmit.PacketReceiver
# is used to receive packet from remote host computer.
#############################

def test_receiver():

  # define a receiver, bind local host IP and a port
  receiver = transmit.PacketReceiver(bport=9509)

  # run
  receiver.start()
  receiver.wait()

  print( receiver.outPIPE.size() )
  #
  while True:
    if receiver.outPIPE.is_empty():
      break
    packet = receiver.outPIPE.get()
    print( packet.items() )

test_receiver()
############################# # exkaldirt.transmit.PacketReceiver # is used to receive packet from remote host computer. ############################# # define a receiver, bind local host IP and a port # run #