Specialized socket IO for arithmetic (actually should for all types without a pointer) type.