#pragma error
#pragma repy

def foo(ip,port,mess, ch):
  print ip,port,mess,ch

if callfunc == 'initialize':
  # a null IP is not allowed
  ch = recvmess('',<messport>,foo)
  sleep(.1)
  stopcomm(ch)
