| 318 | } |
| 319 | |
| 320 | static Result GetSocketNoLock(dmhash_t name_hash, HSocket* out_socket) |
| 321 | { |
| 322 | *out_socket = name_hash; // to silence an existing test |
| 323 | |
| 324 | MessageSocket* message_socket = g_MessageContext->m_Sockets.Get(name_hash); |
| 325 | if (!message_socket) |
| 326 | { |
| 327 | return RESULT_NAME_OK_SOCKET_NOT_FOUND; |
| 328 | } |
| 329 | return RESULT_OK; |
| 330 | } |
| 331 | |
| 332 | Result GetSocket(const char *name, HSocket* out_socket) |
| 333 | { |