Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Sep 26, 2017
1 parent d612a89 commit 846d15e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions burba/sys/bocia/bocia_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,18 @@ void bocia_tcp_accept(bocia_channel_t *ch) {
bocia_register_handlers(sock, ch->target_pid, bocia_tcp_receive, bocia_tcp_send);
}
else {
DEBUG("srv accept error: %d\n", sock);
DEBUG("bocia_tcp_accept failed: errcode %d\n", sock);
}
}

int16_t bocia_tcp_server(uint16_t port, kernel_pid_t *target_pid) {
//int rc = 0;
//int16_t client_fd = SL_SOC_ERROR;
if(!server_fd) {
server_fd = bocia_create_tcp_server(port);
if(server_fd < 0) {
return server_fd;
}
}

DEBUG("server fd: %d\n", server_fd);

// no tx handler needed
bocia_register_handlers(server_fd, *target_pid, bocia_tcp_accept, NULL);

Expand Down

0 comments on commit 846d15e

Please sign in to comment.