first version connect/send/receive socket