/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Krisztian Pandi
******************************************************************************/
//
//  File:               UD_Types.ttcn
//  Description:        UD definition file
//  Rev:                R2A
//  Prodnr:             CNL 113 702 
//


module UD_Types
{    

import from Socket_API_Definitions all;

type Socket_API_Definitions.ro_integer ro_integer;
type Socket_API_Definitions.f_getMsgLen f_getMsgLen;

type f_getMsgLen f_UD_getMsgLen;


type octetstring PDU_UD;
type charstring Path;

type enumerated UD_Result_code { ERROR (0),
  SUCCESS(1)}

type record UD_Result{
  UD_Result_code result_code optional,
  charstring        err  optional
}

type record UD_close{
  integer           id
}

type record UD_connect{
  Path              path,
  integer           id
}

type record UD_connect_result{
  integer           id,
  UD_Result         result optional
}

type record UD_send_data{
  PDU_UD           data,
  integer           id
}

type record UD_connected{
  Path              path,
  integer           id,
  UD_Result         result optional
}

type record UD_listen{
  Path              path
}

type record UD_listen_result{
  integer           id,
  UD_Result         result optional
}

type record UD_shutdown{
  integer           id
}

}
