Create client.c

client create two thread to send database data and heartpackage.