Searched refs:serverAddr (Results 1 – 1 of 1) sorted by relevance
55 struct sockaddr_in serverAddr; in init() local56 bzero((char*)&serverAddr, sizeof(serverAddr)); in init()57 serverAddr.sin_family = AF_INET; in init()58 serverAddr.sin_port = htons(port); in init()59 if (inet_pton(AF_INET, hostIp, &serverAddr.sin_addr) != 1) { in init()64 if (connect(mSocket, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) { in init()