Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_network.cpp
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| public: | public: | ||||
| boost::asio::io_service io_service; | boost::asio::io_service io_service; | ||||
| tcp::socket socket; | tcp::socket socket; | ||||
| device_ptr mem_counter; | device_ptr mem_counter; | ||||
| DeviceTask the_task; /* todo: handle multiple tasks */ | DeviceTask the_task; /* todo: handle multiple tasks */ | ||||
| thread_mutex rpc_lock; | thread_mutex rpc_lock; | ||||
| virtual bool show_samples() const | |||||
| { | |||||
| return false; | |||||
| } | |||||
| NetworkDevice(DeviceInfo& info, Stats &stats, const char *address) | NetworkDevice(DeviceInfo& info, Stats &stats, const char *address) | ||||
| : Device(info, stats, true), socket(io_service) | : Device(info, stats, true), socket(io_service) | ||||
| { | { | ||||
| error_func = NetworkError(); | error_func = NetworkError(); | ||||
| stringstream portstr; | stringstream portstr; | ||||
| portstr << SERVER_PORT; | portstr << SERVER_PORT; | ||||
| tcp::resolver resolver(io_service); | tcp::resolver resolver(io_service); | ||||
| ▲ Show 20 Lines • Show All 796 Lines • Show Last 20 Lines | |||||