Lines Matching refs:sock_
148 sock_ = ki_socket(AF_INET, SOCK_STREAM, 0);
149 EXPECT_GT(sock_, -1);
156 ASSERT_EQ(0, ki_close(sock_));
165 int sock_;
346 ASSERT_EQ(0, ki_connect(sock_, (sockaddr*) &addr, addrlen))
353 ASSERT_EQ(sizeof(outbuf), ki_write(sock_, outbuf, sizeof(outbuf)))
355 ASSERT_EQ(sizeof(outbuf), ki_read(sock_, inbuf, sizeof(inbuf)));
360 ASSERT_EQ(sizeof(outbuf), ki_write(sock_, outbuf, sizeof(outbuf)));
361 ASSERT_EQ(sizeof(outbuf), ki_read(sock_, inbuf, sizeof(inbuf)));
376 SetNonBlocking(sock_);
377 ASSERT_EQ(-1, ki_connect(sock_, (sockaddr*) &addr, addrlen));
380 ASSERT_EQ(-1, ki_connect(sock_, (sockaddr*) &addr, addrlen));
384 struct pollfd pollfd = { sock_, POLLIN|POLLOUT, 0 };
389 ASSERT_EQ(-1, ki_connect(sock_, (sockaddr*) &addr, addrlen));
536 ASSERT_EQ(0, ki_connect(sock_, (sockaddr*) &addr, addrlen))
542 int sent = ki_send(sock_, outbuf + bytes_sent,
550 int received = ki_recv(sock_, inbuf + bytes_received,
560 ASSERT_EQ(-1, ki_recv(sock_, dummy, 10, MSG_DONTWAIT));