Thread, Socket