Merge Protocol and Socket