Moved creation & configuration of sockaddr_in to own function in TX, and added static variable last to function to send all heartbeats, reduces number of parameters, reduces amount of state in txmain, and makes code cleaner.