Changes in uspace/srv/net/tcp/service.c [b7fd2a0:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/service.c
rb7fd2a0 rcde999a 68 68 static void tcp_service_lst_cstate_change(tcp_conn_t *, void *, tcp_cstate_t); 69 69 70 static errno_t tcp_cconn_create(tcp_client_t *, tcp_conn_t *, tcp_cconn_t **);70 static int tcp_cconn_create(tcp_client_t *, tcp_conn_t *, tcp_cconn_t **); 71 71 72 72 /** Connection callbacks to tie us to lower layer */ … … 132 132 tcp_cconn_t *cconn; 133 133 inet_ep2_t epp; 134 errno_t rc;134 int rc; 135 135 tcp_error_t trc; 136 136 … … 298 298 * @return EOK on success or ENOMEM if out of memory 299 299 */ 300 static errno_t tcp_cconn_create(tcp_client_t *client, tcp_conn_t *conn,300 static int tcp_cconn_create(tcp_client_t *client, tcp_conn_t *conn, 301 301 tcp_cconn_t **rcconn) 302 302 { … … 345 345 * @return EOK on success or ENOMEM if out of memory 346 346 */ 347 static errno_t tcp_clistener_create(tcp_client_t *client, tcp_conn_t *conn,347 static int tcp_clistener_create(tcp_client_t *client, tcp_conn_t *conn, 348 348 tcp_clst_t **rclst) 349 349 { … … 390 390 * is found. 391 391 */ 392 static errno_t tcp_cconn_get(tcp_client_t *client, sysarg_t id,392 static int tcp_cconn_get(tcp_client_t *client, sysarg_t id, 393 393 tcp_cconn_t **rcconn) 394 394 { … … 412 412 * is found. 413 413 */ 414 static errno_t tcp_clistener_get(tcp_client_t *client, sysarg_t id,414 static int tcp_clistener_get(tcp_client_t *client, sysarg_t id, 415 415 tcp_clst_t **rclst) 416 416 { … … 435 435 * @return EOK on success or an error code 436 436 */ 437 static errno_t tcp_conn_create_impl(tcp_client_t *client, inet_ep2_t *epp,437 static int tcp_conn_create_impl(tcp_client_t *client, inet_ep2_t *epp, 438 438 sysarg_t *rconn_id) 439 439 { 440 440 tcp_conn_t *conn; 441 441 tcp_cconn_t *cconn; 442 errno_t rc;442 int rc; 443 443 tcp_error_t trc; 444 444 char *slocal; … … 482 482 * @return EOK on success, ENOENT if no such connection is found 483 483 */ 484 static errno_t tcp_conn_destroy_impl(tcp_client_t *client, sysarg_t conn_id)484 static int tcp_conn_destroy_impl(tcp_client_t *client, sysarg_t conn_id) 485 485 { 486 486 tcp_cconn_t *cconn; 487 errno_t rc;487 int rc; 488 488 489 489 rc = tcp_cconn_get(client, conn_id, &cconn); … … 509 509 * @return EOK on success or an error code 510 510 */ 511 static errno_t tcp_listener_create_impl(tcp_client_t *client, inet_ep_t *ep,511 static int tcp_listener_create_impl(tcp_client_t *client, inet_ep_t *ep, 512 512 sysarg_t *rlst_id) 513 513 { … … 515 515 tcp_clst_t *clst; 516 516 inet_ep2_t epp; 517 errno_t rc;517 int rc; 518 518 tcp_error_t trc; 519 519 … … 555 555 * @return EOK on success, ENOENT if no such listener is found 556 556 */ 557 static errno_t tcp_listener_destroy_impl(tcp_client_t *client, sysarg_t lst_id)557 static int tcp_listener_destroy_impl(tcp_client_t *client, sysarg_t lst_id) 558 558 { 559 559 tcp_clst_t *clst; 560 errno_t rc;560 int rc; 561 561 562 562 rc = tcp_clistener_get(client, lst_id, &clst); … … 580 580 * @return EOK on success or an error code 581 581 */ 582 static errno_t tcp_conn_send_fin_impl(tcp_client_t *client, sysarg_t conn_id)582 static int tcp_conn_send_fin_impl(tcp_client_t *client, sysarg_t conn_id) 583 583 { 584 584 tcp_cconn_t *cconn; 585 errno_t rc;585 int rc; 586 586 587 587 rc = tcp_cconn_get(client, conn_id, &cconn); … … 605 605 * @return EOK on success or an error code 606 606 */ 607 static errno_t tcp_conn_push_impl(tcp_client_t *client, sysarg_t conn_id)607 static int tcp_conn_push_impl(tcp_client_t *client, sysarg_t conn_id) 608 608 { 609 609 tcp_cconn_t *cconn; 610 errno_t rc;610 int rc; 611 611 612 612 rc = tcp_cconn_get(client, conn_id, &cconn); … … 630 630 * @return EOK on success or an error code 631 631 */ 632 static errno_t tcp_conn_reset_impl(tcp_client_t *client, sysarg_t conn_id)632 static int tcp_conn_reset_impl(tcp_client_t *client, sysarg_t conn_id) 633 633 { 634 634 tcp_cconn_t *cconn; 635 errno_t rc;635 int rc; 636 636 637 637 rc = tcp_cconn_get(client, conn_id, &cconn); … … 656 656 * @return EOK on success or an error code 657 657 */ 658 static errno_t tcp_conn_send_impl(tcp_client_t *client, sysarg_t conn_id,658 static int tcp_conn_send_impl(tcp_client_t *client, sysarg_t conn_id, 659 659 void *data, size_t size) 660 660 { 661 661 tcp_cconn_t *cconn; 662 errno_t rc;662 int rc; 663 663 tcp_error_t trc; 664 664 … … 686 686 * @return EOK on success or an error code 687 687 */ 688 static errno_t tcp_conn_recv_impl(tcp_client_t *client, sysarg_t conn_id,688 static int tcp_conn_recv_impl(tcp_client_t *client, sysarg_t conn_id, 689 689 void *data, size_t size, size_t *nrecv) 690 690 { 691 691 tcp_cconn_t *cconn; 692 692 xflags_t xflags; 693 errno_t rc;693 int rc; 694 694 tcp_error_t trc; 695 695 … … 758 758 inet_ep2_t epp; 759 759 sysarg_t conn_id; 760 errno_t rc;760 int rc; 761 761 762 762 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_create_srv()"); … … 802 802 { 803 803 sysarg_t conn_id; 804 errno_t rc;804 int rc; 805 805 806 806 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_destroy_srv()"); … … 826 826 inet_ep_t ep; 827 827 sysarg_t lst_id; 828 errno_t rc;828 int rc; 829 829 830 830 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_listener_create_srv()"); … … 870 870 { 871 871 sysarg_t lst_id; 872 errno_t rc;872 int rc; 873 873 874 874 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_listener_destroy_srv()"); … … 891 891 { 892 892 sysarg_t conn_id; 893 errno_t rc;893 int rc; 894 894 895 895 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_send_fin_srv()"); … … 912 912 { 913 913 sysarg_t conn_id; 914 errno_t rc;914 int rc; 915 915 916 916 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_push_srv()"); … … 933 933 { 934 934 sysarg_t conn_id; 935 errno_t rc;935 int rc; 936 936 937 937 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_reset_srv()"); … … 957 957 sysarg_t conn_id; 958 958 void *data; 959 errno_t rc;959 int rc; 960 960 961 961 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_send_srv())"); … … 1018 1018 size_t size, rsize; 1019 1019 void *data; 1020 errno_t rc;1020 int rc; 1021 1021 1022 1022 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_srv()"); … … 1074 1074 size_t size, rsize; 1075 1075 void *data; 1076 errno_t rc;1076 int rc; 1077 1077 1078 1078 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_conn_recv_wait_srv()"); … … 1246 1246 * @return EOK on success or an error code. 1247 1247 */ 1248 errno_t tcp_service_init(void)1249 { 1250 errno_t rc;1248 int tcp_service_init(void) 1249 { 1250 int rc; 1251 1251 service_id_t sid; 1252 1252
Note:
See TracChangeset
for help on using the changeset viewer.