[ddfcfeb2] | 1 | /*
|
---|
[fab2746] | 2 | * Copyright (c) 2015 Jiri Svoboda
|
---|
[ddfcfeb2] | 3 | * All rights reserved.
|
---|
| 4 | *
|
---|
| 5 | * Redistribution and use in source and binary forms, with or without
|
---|
| 6 | * modification, are permitted provided that the following conditions
|
---|
| 7 | * are met:
|
---|
| 8 | *
|
---|
| 9 | * - Redistributions of source code must retain the above copyright
|
---|
| 10 | * notice, this list of conditions and the following disclaimer.
|
---|
| 11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
| 12 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 13 | * documentation and/or other materials provided with the distribution.
|
---|
| 14 | * - The name of the author may not be used to endorse or promote products
|
---|
| 15 | * derived from this software without specific prior written permission.
|
---|
| 16 | *
|
---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 27 | */
|
---|
| 28 |
|
---|
[d9e2e0e] | 29 | /** @addtogroup libc
|
---|
[fab2746] | 30 | * @{
|
---|
[ddfcfeb2] | 31 | */
|
---|
[fab2746] | 32 | /** @file UDP API
|
---|
[ddfcfeb2] | 33 | */
|
---|
| 34 |
|
---|
[d9e2e0e] | 35 | #include <errno.h>
|
---|
[fab2746] | 36 | #include <inet/endpoint.h>
|
---|
| 37 | #include <inet/tcp.h>
|
---|
| 38 |
|
---|
| 39 | int tcp_create(tcp_t **rtcp)
|
---|
| 40 | {
|
---|
| 41 | return 0;
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | void tcp_destroy(tcp_t *tcp)
|
---|
| 45 | {
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | int tcp_conn_create(tcp_t *tcp, inet_ep2_t *epp, tcp_cb_t *cb, void *arg,
|
---|
| 49 | tcp_conn_t **rconn)
|
---|
| 50 | {
|
---|
| 51 | return 0;
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | void tcp_conn_destroy(tcp_conn_t *conn)
|
---|
| 55 | {
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | void *tcp_conn_userptr(tcp_conn_t *conn)
|
---|
| 59 | {
|
---|
| 60 | return NULL;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | int tcp_listener_create(tcp_t *tcp, inet_ep_t *ep, tcp_listen_cb_t *lcb,
|
---|
| 64 | void *larg, tcp_cb_t *cb, void *arg, tcp_listener_t **rlst)
|
---|
| 65 | {
|
---|
| 66 | return 0;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | void tcp_listener_destroy(tcp_listener_t *lst)
|
---|
| 70 | {
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | void *tcp_listener_userptr(tcp_listener_t *lst)
|
---|
| 74 | {
|
---|
| 75 | return NULL;
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | int tcp_conn_wait_connected(tcp_conn_t *conn)
|
---|
| 80 | {
|
---|
| 81 | return 0;
|
---|
| 82 | }
|
---|
| 83 |
|
---|
| 84 | int tcp_conn_send(tcp_conn_t *conn, const void *data, size_t bytes)
|
---|
| 85 | {
|
---|
| 86 | return 0;
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | int tcp_conn_send_fin(tcp_conn_t *conn)
|
---|
| 90 | {
|
---|
| 91 | return 0;
|
---|
| 92 | }
|
---|
| 93 |
|
---|
| 94 | int tcp_conn_push(tcp_conn_t *conn)
|
---|
| 95 | {
|
---|
| 96 | return 0;
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | void tcp_conn_reset(tcp_conn_t *conn)
|
---|
| 100 | {
|
---|
| 101 | }
|
---|
| 102 |
|
---|
| 103 |
|
---|
| 104 | int tcp_conn_recv(tcp_conn_t *conn, void *buf, size_t bsize, size_t *nrecv)
|
---|
| 105 | {
|
---|
| 106 | return 0;
|
---|
| 107 | }
|
---|
| 108 |
|
---|
| 109 | int tcp_conn_recv_wait(tcp_conn_t *conn, void *buf, size_t bsize, size_t *nrecv)
|
---|
| 110 | {
|
---|
| 111 | return 0;
|
---|
| 112 | }
|
---|
[d9e2e0e] | 113 |
|
---|
[ddfcfeb2] | 114 |
|
---|
| 115 | /** @}
|
---|
| 116 | */
|
---|