blob: 7b937d32f0b5237e66f3b9ea42c6b9a76a405c11 [file] [log] [blame]
Florin Corasba7d8f52019-02-22 13:11:38 -08001/*
2 * Copyright (c) 2019 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16
17#ifndef SRC_VNET_SESSION_APPLICATION_LOCAL_H_
18#define SRC_VNET_SESSION_APPLICATION_LOCAL_H_
19
20#include <vnet/session/application.h>
Florin Coras2b81e3c2019-02-27 07:55:46 -080021#include <vnet/session/transport.h>
Florin Corasba7d8f52019-02-22 13:11:38 -080022
Florin Coras2b81e3c2019-02-27 07:55:46 -080023typedef struct ct_connection_
Florin Corasba7d8f52019-02-22 13:11:38 -080024{
Florin Coras2b81e3c2019-02-27 07:55:46 -080025 transport_connection_t connection;
26 u32 client_wrk;
27 u32 server_wrk;
28 u32 transport_listener_index;
29 transport_proto_t actual_tp;
Florin Coras2b81e3c2019-02-27 07:55:46 -080030 u32 client_opaque;
31 u32 peer_index;
32 u64 segment_handle;
Florin Coras653e43f2019-03-04 10:56:23 -080033 svm_fifo_t *client_rx_fifo;
34 svm_fifo_t *client_tx_fifo;
35 u8 is_client;
Florin Coras2b81e3c2019-02-27 07:55:46 -080036} ct_connection_t;
37
38session_t *ct_session_get_peer (session_t * s);
39void ct_session_endpoint (session_t * ll, session_endpoint_t * sep);
40int ct_session_connect_notify (session_t * ls);
Florin Coras653e43f2019-03-04 10:56:23 -080041int ct_session_tx (session_t * s);
Florin Corasba7d8f52019-02-22 13:11:38 -080042
43#endif /* SRC_VNET_SESSION_APPLICATION_LOCAL_H_ */
44
45/*
46 * fd.io coding-style-patch-verification: ON
47 *
48 * Local Variables:
49 * eval: (c-set-style "gnu")
50 * End:
51 */