source: mainline/uspace/lib/c/generic/inet/tcp.c@ fab2746

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since fab2746 was fab2746, checked in by Jiri Svoboda <jiri@…>, 10 years ago

New transport layer API. Only UDP implemented.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1/*
2 * Copyright (c) 2015 Jiri Svoboda
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
29/** @addtogroup libc
30 * @{
31 */
32/** @file UDP API
33 */
34
35#include <errno.h>
36#include <inet/endpoint.h>
37#include <inet/tcp.h>
38
39int tcp_create(tcp_t **rtcp)
40{
41 return 0;
42}
43
44void tcp_destroy(tcp_t *tcp)
45{
46}
47
48int 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
54void tcp_conn_destroy(tcp_conn_t *conn)
55{
56}
57
58void *tcp_conn_userptr(tcp_conn_t *conn)
59{
60 return NULL;
61}
62
63int 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
69void tcp_listener_destroy(tcp_listener_t *lst)
70{
71}
72
73void *tcp_listener_userptr(tcp_listener_t *lst)
74{
75 return NULL;
76}
77
78
79int tcp_conn_wait_connected(tcp_conn_t *conn)
80{
81 return 0;
82}
83
84int tcp_conn_send(tcp_conn_t *conn, const void *data, size_t bytes)
85{
86 return 0;
87}
88
89int tcp_conn_send_fin(tcp_conn_t *conn)
90{
91 return 0;
92}
93
94int tcp_conn_push(tcp_conn_t *conn)
95{
96 return 0;
97}
98
99void tcp_conn_reset(tcp_conn_t *conn)
100{
101}
102
103
104int tcp_conn_recv(tcp_conn_t *conn, void *buf, size_t bsize, size_t *nrecv)
105{
106 return 0;
107}
108
109int tcp_conn_recv_wait(tcp_conn_t *conn, void *buf, size_t bsize, size_t *nrecv)
110{
111 return 0;
112}
113
114
115/** @}
116 */
Note: See TracBrowser for help on using the repository browser.