High-level API for point to point socket communications