Home
last modified time | relevance | path

Searched refs:server_addr (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish_common/tools/play_audio/
Dclient_socket.cpp48 sockaddr_in server_addr{}; local
54 server_addr.sin_family = AF_INET;
55 server_addr.sin_port = htons(port);
57 if (inet_pton(AF_INET, "127.0.0.1", &server_addr.sin_addr) <= 0) {
63 if (connect(socket_fd_, reinterpret_cast<sockaddr*>(&server_addr),
64 sizeof server_addr) < 0) {
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_socket.c554 mm_qcamera_sock_addr_t server_addr; in tunning_server_socket_listen() local
559 memset(&server_addr, 0, sizeof(server_addr)); in tunning_server_socket_listen()
560 server_addr.addr_in.sin_family = AF_INET; in tunning_server_socket_listen()
561 server_addr.addr_in.sin_port = (__be16) htons(port); in tunning_server_socket_listen()
562 server_addr.addr_in.sin_addr.s_addr = inet_addr(ip_addr); in tunning_server_socket_listen()
564 if (server_addr.addr_in.sin_addr.s_addr == INADDR_NONE) { in tunning_server_socket_listen()
592 result = bind(sock_fd, &server_addr.addr, sizeof(server_addr.addr_in)); in tunning_server_socket_listen()