Mostly implement tcp for mozTCPSocket