can connect/send/close with udp or tcp