| 769 | } |
| 770 | |
| 771 | Ipc::SocketConnection::SocketConnection(Ipc::socket_t fd, string_view name) : mSocketFd{fd}, mName{name} { |
| 772 | TEV_ASSERT(mSocketFd != INVALID_SOCKET, "SocketConnection must receive a valid socket."); |
| 773 | |
| 774 | makeSocketNonBlocking(mSocketFd); |
| 775 | |
| 776 | // 1 MiB is a good default buffer size. If larger is required, it'll be automatizally resized. |
| 777 | mBuffer.resize(1024 * 1024); |
| 778 | } |
| 779 | |
| 780 | Ipc::SocketConnection::~SocketConnection() { close(); } |
| 781 |
nothing calls this directly
no test coverage detected