Home | History | Annotate | Download | only in socket_forward_proxy

Lines Matching refs:shm

128   LOG(INFO) << "Socket to shm exiting";
143 LOG(INFO) << "Shm to socket exiting";
146 // One thread for reading from shm and writing into a socket.
147 // One thread for reading from a socket and writing into shm.
170 [[noreturn]] void host_impl(SocketForwardRegionView* shm,
176 std::thread(host_impl, shm, ports, index + 1).detach();
189 auto conn = shm->OpenConnection(guest_port);
190 LOG(INFO) << "shm connection opened";
195 [[noreturn]] void host(SocketForwardRegionView* shm,
198 host_impl(shm, ports, 0);
227 [[noreturn]] void guest(SocketForwardRegionView* shm) {
230 auto conn = shm->AcceptConnection();
231 LOG(INFO) << "shm connection accepted";
241 auto shm = SocketForwardRegionView::GetInstance(
246 if (!shm) {
247 LOG(FATAL) << "Could not open SHM. Aborting.";
249 shm->CleanUpPreviousConnections();
250 return shm;
266 auto shm = GetShm();
267 auto worker = shm->StartWorker();
272 host(shm, ParsePortsList(FLAGS_guest_ports, FLAGS_host_ports));
274 guest(shm);