Made connections TCP, added a callback when a packet is received