socket and ansi