Changeset ee1c2d9 in mainline for uspace/srv/net/tcp/conn.h


Ignore:
Timestamp:
2015-06-13T18:30:18Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a157846
Parents:
0453261 (diff), 2f9a8e8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/conn.h

    r0453261 ree1c2d9  
    11/*
    2  * Copyright (c) 2011 Jiri Svoboda
     2 * Copyright (c) 2015 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3636#define CONN_H
    3737
     38#include <inet/endpoint.h>
    3839#include <stdbool.h>
    3940#include "tcp_type.h"
    4041
    41 extern tcp_conn_t *tcp_conn_new(tcp_sock_t *, tcp_sock_t *);
     42extern int tcp_conns_init(void);
     43extern tcp_conn_t *tcp_conn_new(inet_ep2_t *);
    4244extern void tcp_conn_delete(tcp_conn_t *);
    43 extern void tcp_conn_add(tcp_conn_t *);
     45extern int tcp_conn_add(tcp_conn_t *);
    4446extern void tcp_conn_remove(tcp_conn_t *);
    4547extern void tcp_conn_reset(tcp_conn_t *conn);
     
    4749extern void tcp_conn_fin_sent(tcp_conn_t *);
    4850extern void tcp_conn_ack_of_fin_rcvd(tcp_conn_t *);
    49 extern tcp_conn_t *tcp_conn_find_ref(tcp_sockpair_t *);
     51extern tcp_conn_t *tcp_conn_find_ref(inet_ep2_t *);
    5052extern void tcp_conn_addref(tcp_conn_t *);
    5153extern void tcp_conn_delref(tcp_conn_t *);
     
    5355extern void tcp_conn_unlock(tcp_conn_t *);
    5456extern bool tcp_conn_got_syn(tcp_conn_t *);
    55 extern void tcp_conn_segment_arrived(tcp_conn_t *, tcp_segment_t *);
     57extern void tcp_conn_segment_arrived(tcp_conn_t *, inet_ep2_t *,
     58    tcp_segment_t *);
    5659extern void tcp_conn_trim_seg_to_wnd(tcp_conn_t *, tcp_segment_t *);
    57 extern void tcp_unexpected_segment(tcp_sockpair_t *, tcp_segment_t *);
    58 extern void tcp_sockpair_flipped(tcp_sockpair_t *, tcp_sockpair_t *);
    59 extern void tcp_reply_rst(tcp_sockpair_t *, tcp_segment_t *);
     60extern void tcp_unexpected_segment(inet_ep2_t *, tcp_segment_t *);
     61extern void tcp_ep2_flipped(inet_ep2_t *, inet_ep2_t *);
     62extern void tcp_reply_rst(inet_ep2_t *, tcp_segment_t *);
    6063
    6164#endif
Note: See TracChangeset for help on using the changeset viewer.