Object oriented sockets