diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-06-15 16:13:39 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-06-15 16:20:11 +0200 |
commit | 3caeebc95e774974fbef46f01bf55d5e8ff117c6 (patch) | |
tree | cc5f8aacf124d3a38c548057621e5a6634ff1e67 /library/SABP_CodecPort.ttcn | |
parent | b6300d1ee2cbad0ccdfac8ada3c60036f177a3af (diff) |
Move all SABP files to library/sabp/
Let's have all SABP related stuff together in one subdir, not some under
the subdir and some directly under library/.
Change-Id: Ibfd0287194c87dcc240590e0835d6205ead194f9
Diffstat (limited to 'library/SABP_CodecPort.ttcn')
-rw-r--r-- | library/SABP_CodecPort.ttcn | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/library/SABP_CodecPort.ttcn b/library/SABP_CodecPort.ttcn deleted file mode 100644 index 65fb5420..00000000 --- a/library/SABP_CodecPort.ttcn +++ /dev/null @@ -1,65 +0,0 @@ -module SABP_CodecPort { - -/* Simple SABP Codec Port, translating between raw TCP octetstring payload - * towards the IPL4asp port provider, and SABP primitives - * which carry the decoded SABP data types as payload. - * - * (C) 2019 by Harald Welte <laforge@gnumonks.org> - * All rights reserved. - * - * Released under the terms of GNU General Public License, Version 2 or - * (at your option) any later version. - */ - - -import from IPL4asp_PortType all; -import from IPL4asp_Types all; -import from SABP_PDU_Descriptions all; -import from SABP_Types all; - -type record SABP_RecvFrom { - ConnectionId connId, - SABP_PDU msg -} - -type record SABP_Send { - ConnectionId connId, - SABP_PDU msg -} - -template (value) SABP_Send ts_SABP_Send(ConnectionId conn_id, template (value) SABP_PDU msg) := { - connId := conn_id, - msg := msg -} - -template SABP_RecvFrom tr_SABP_Recv(template ConnectionId conn_id, template SABP_PDU msg) := { - connId := conn_id, - msg := msg -} - -private function IPL4_to_SABP_RecvFrom(in ASP_RecvFrom pin, out SABP_RecvFrom pout) { - pout.connId := pin.connId; - pout.msg := dec_SABP_PDU(pin.msg); -} with { extension "prototype(fast)" } - -private function SABP_to_IPL4_Send(in SABP_Send pin, out ASP_Send pout) { - pout.connId := pin.connId; - pout.proto := { tcp := {} }; - pout.msg := enc_SABP_PDU(pin.msg); -} with { extension "prototype(fast)" } - -type port SABP_CODEC_PT message { - out SABP_Send; - in SABP_RecvFrom, - ASP_ConnId_ReadyToRelease, - ASP_Event; -} with { extension "user IPL4asp_PT - out(SABP_Send -> ASP_Send: function(SABP_to_IPL4_Send)) - in(ASP_RecvFrom -> SABP_RecvFrom: function(IPL4_to_SABP_RecvFrom); - ASP_ConnId_ReadyToRelease -> ASP_ConnId_ReadyToRelease: simple; - ASP_Event -> ASP_Event: simple)" -} - - - -} |