Let me add some background. The middleman::publish
/ parameter middleman::remote_actor
performs two functions: connecting two instances of CAF and providing a handle to communicate with the remote player. The actor that you "publish" for this port must act as an entry point. This is a convenient rendezvous point, nothing more.
, - . , - , . remote_actor
- . , , , . .
, CAF TCP- . 10 A "" 10 B remote_actor
, , CAF 10 ( node ), .
, publish
/remote_actor
, middleman::open
middleman::connect
. CAF . connect
a node_id
. , . .
( - )?
, . 1000 , .
, , - , .
: CAF . atom
, 10 . , strong_actor_ptr
. , , : (. actor_system::registry
), middleman::remote_lookup
( node_id
).