socket reapir agent communication