def tcp_listener(address, backlog=50, reuse_addr=True):
 sock = socket()
 bind_and_listen(sock, address, backlog=backlog, reuse_addr=reuse_addr)
 return sock

def tcp_listener ( address , backlog = 50 , reuse_addr = True ) : sock = socket ( ) bind_and_listen ( sock , address , backlog = backlog , reuse_addr = reuse_addr ) return sock
a shortcut to create a tcp socket .