Skip to content

Commit

Permalink
wrap posix socket
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Dec 2, 2024
1 parent 79db776 commit c850837
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions source/posix/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,15 @@ static int s_socket_init(
return AWS_OP_SUCCESS;
}

// int aws_socket_init_posix(
// struct aws_socket *socket,
// struct aws_allocator *alloc,
// const struct aws_socket_options *options) {
// AWS_ASSERT(options);
// return s_socket_init(socket, alloc, options, -1);
// }
#if defined(AWS_ENABLE_EPOLL) || defined(AWS_ENABLE_KQUEUE)
int aws_socket_init_posix(
struct aws_socket *socket,
struct aws_allocator *alloc,
const struct aws_socket_options *options) {
AWS_ASSERT(options);
return s_socket_init(socket, alloc, options, -1);
}
#endif

static void s_socket_clean_up(struct aws_socket *socket) {
if (!socket->impl) {
Expand Down

0 comments on commit c850837

Please sign in to comment.