simple socket usage