Io Reference







Networking   /   DistributedObjects   /   MDOConnection





A Minimal Distributed Objects connection. Example;
dateServerCon := MDOConnection clone setHost("127.0.0.1") setPort(8123) connect
writeln("date from date server: ", Date fromNumber(dateServerCon currentDate))
dateServerCon close
See the docs for MDOServer for the DateServer code.

A MDOConnection will pause calling coroutines until the response is received. Mutliple requests can be sent before a single request returns if they are sent from separate coroutines.