Add AGPL license header to tcp.c