-- Autogenerated by MSIL2Ada v. 2
-- By: Martin C. Carlisle
--     Department of Computer Science
--     US Air Force Academy
--     carlislem@acm.org
pragma Extensions_Allowed(On);
with MSSyst.Object;
with MSIL_Types;
use MSIL_Types;
with type MSSyst.String.Ref is access;
with type MSSyst.Net.IPEndPoint.Ref is access;
with type MSSyst.Net.IPAddress.Ref is access;
with type MSSyst.Object.Ref is access;
with type MSSyst.Type_k.Ref is access;
with type MSSyst.Net.IPEndPoint.Ref_addrof is access;
with MSSyst.Object;
package MSSyst.Net.Sockets.UdpClient is
   type Typ;
   type Ref is access all Typ'Class;
   type Ref_addrof is access all Ref;
   type Ref_Arr is array(Natural range <>) of Ref;
   type Ref_Array is access all Ref_Arr;
   type Ref_Array_addrof is access all Ref_Array;
   type Typ is new MSSyst.Object.Typ with record
      null;
   end record;
   function new_UdpClient(
      This : Ref := null) return Ref;
   function new_UdpClient(
      This : Ref := null;
      port : Integer) return Ref;
   function new_UdpClient(
      This : Ref := null;
      localEP : MSSyst.Net.IPEndPoint.Ref) return Ref;
   function new_UdpClient(
      This : Ref := null;
      hostname : MSSyst.String.Ref;
      port : Integer) return Ref;
   procedure Close(
      This : access Typ);
   procedure Connect(
      This : access Typ;
      hostname : MSSyst.String.Ref;
      port : Integer);
   procedure Connect(
      This : access Typ;
      endPoint : MSSyst.Net.IPEndPoint.Ref);
   procedure Connect(
      This : access Typ;
      addr : MSSyst.Net.IPAddress.Ref;
      port : Integer);
   procedure DropMulticastGroup(
      This : access Typ;
      multicastAddr : MSSyst.Net.IPAddress.Ref);
   procedure JoinMulticastGroup(
      This : access Typ;
      multicastAddr : MSSyst.Net.IPAddress.Ref;
      timeToLive : Integer);
   function Receive(
      This : access Typ;
      remoteEP : MSSyst.Net.IPEndPoint.Ref_addrof) return MSIL_Types.unsigned_int8_Array;
   function Send(
      This : access Typ;
      dgram : MSIL_Types.unsigned_int8_Arr;
      bytes : Integer;
      endPoint : MSSyst.Net.IPEndPoint.Ref) return Integer;
   function Send(
      This : access Typ;
      dgram : MSIL_Types.unsigned_int8_Arr;
      bytes : Integer;
      hostname : MSSyst.String.Ref;
      port : Integer) return Integer;
   function Send(
      This : access Typ;
      dgram : MSIL_Types.unsigned_int8_Arr;
      bytes : Integer) return Integer;
private
   pragma Convention(MSIL,Typ);
   pragma MSIL_Constructor(new_UdpClient);
   pragma Import(MSIL,Close,"Close");
   pragma Import(MSIL,Connect,"Connect");
   pragma Import(MSIL,DropMulticastGroup,"DropMulticastGroup");
   pragma Import(MSIL,JoinMulticastGroup,"JoinMulticastGroup");
   pragma Import(MSIL,Receive,"Receive");
   pragma Import(MSIL,Send,"Send");
end MSSyst.Net.Sockets.UdpClient;
pragma Extensions_Allowed(Off);
pragma Import(MSIL,MSSyst.Net.Sockets.UdpClient,
   ".ver 1:0:5000:0 .publickeytoken=( 96 9d b8 05 3d 33 22 ac )",
   "[System]System.Net.Sockets.UdpClient");
