diff options
-rw-r--r-- | tizen/src/util/sdb.c | 23 | ||||
-rw-r--r-- | tizen/src/util/sdb.h | 1 |
2 files changed, 1 insertions, 23 deletions
diff --git a/tizen/src/util/sdb.c b/tizen/src/util/sdb.c index 35db58b97d..9dbc775973 100644 --- a/tizen/src/util/sdb.c +++ b/tizen/src/util/sdb.c @@ -121,7 +121,7 @@ int check_port_bind_listen(uint32_t port) memset(&addr, 0, addrlen); addr.sin_family = AF_INET; - addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + addr.sin_addr.s_addr = htonl(INADDR_ANY); addr.sin_port = htons(port); s = qemu_socket(AF_INET, SOCK_STREAM, 0); @@ -221,27 +221,6 @@ void sdb_setup(void) INFO( "Port(%d/tcp) listen for SDB\n", number); } -int sdb_loopback_client(int port, int type) -{ - struct sockaddr_in addr; - int s; - - memset(&addr, 0, sizeof(addr)); - addr.sin_family = AF_INET; - addr.sin_port = htons(port); - addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); - - s = socket(AF_INET, type, 0); - if(s < 0) return -1; - - if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) { - close(s); - return -1; - } - - return s; -} - /* * SDB Notification server */ diff --git a/tizen/src/util/sdb.h b/tizen/src/util/sdb.h index 98ec33d3b5..7be0ee3914 100644 --- a/tizen/src/util/sdb.h +++ b/tizen/src/util/sdb.h @@ -58,7 +58,6 @@ int inet_strtoip(const char* str, uint32_t *ip); int socket_send(int fd, const void* buf, int buflen); void socket_close(int fd); int check_port_bind_listen(uint32_t port); -int sdb_loopback_client(int port, int type); void start_sdb_noti_server(int server_port); |