mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Implement non-blocking connect
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9211061181
commit
27c5c27fd0
@ -189,3 +189,12 @@ FN_TEST(poll)
|
||||
(pfd.revents & (POLLIN | POLLOUT)) == POLLOUT);
|
||||
}
|
||||
END_TEST()
|
||||
|
||||
FN_TEST(connect)
|
||||
{
|
||||
struct sockaddr *psaddr = (struct sockaddr *)&sk_addr;
|
||||
socklen_t addrlen = sizeof(sk_addr);
|
||||
|
||||
TEST_SUCC(connect(sk_connected, psaddr, addrlen));
|
||||
}
|
||||
END_TEST()
|
||||
|
Reference in New Issue
Block a user