Updated socket examples.