socket examples