recording sockets