Multiplatform socket instrumentation