Sanntidsoving 3, TCP and UDP socket programming