Skip to content

Commit 6b2b002

Browse files
florincorasDave Barach
authored andcommitted
session: remove app transport type infra
Transports can only be connection oriented (virtual cirtuits) or connectionless. Type: improvement Change-Id: Ib87018b139cb00b19620f6fd7eac43ed297ab066 Signed-off-by: Florin Coras <fcoras@cisco.com>
1 parent bc7e722 commit 6b2b002

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

src/vnet/session/session.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,23 +1307,12 @@ session_open_vc (session_endpoint_cfg_t *rmt, session_handle_t *rsh)
13071307
return 0;
13081308
}
13091309

1310-
int
1311-
session_open_app (session_endpoint_cfg_t *rmt, session_handle_t *rsh)
1312-
{
1313-
transport_endpoint_cfg_t *tep_cfg = session_endpoint_to_transport_cfg (rmt);
1314-
1315-
/* Not supported for now */
1316-
*rsh = SESSION_INVALID_HANDLE;
1317-
return transport_connect (rmt->transport_proto, tep_cfg);
1318-
}
1319-
13201310
typedef int (*session_open_service_fn) (session_endpoint_cfg_t *,
13211311
session_handle_t *);
13221312

13231313
static session_open_service_fn session_open_srv_fns[TRANSPORT_N_SERVICES] = {
13241314
session_open_vc,
13251315
session_open_cl,
1326-
session_open_app,
13271316
};
13281317

13291318
/**

src/vnet/session/transport_types.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ typedef enum transport_dequeue_type_
2424

2525
typedef enum transport_service_type_
2626
{
27-
TRANSPORT_SERVICE_VC, /**< virtual circuit service */
28-
TRANSPORT_SERVICE_CL, /**< connectionless service */
29-
TRANSPORT_SERVICE_APP, /**< app transport service */
27+
TRANSPORT_SERVICE_VC, /**< virtual circuit service */
28+
TRANSPORT_SERVICE_CL, /**< connectionless service */
3029
TRANSPORT_N_SERVICES
3130
} transport_service_type_t;
3231

0 commit comments

Comments
 (0)