🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #334570

Re: Problem z idUDPServer

#334570
From: arturs
Date: Tue, 03 Jan 2012 14:49
30 lines
1505 bytes
W dniu 2012-01-03 15:34, R.e.m.e.K pisze:
> Dnia Tue, 03 Jan 2012 15:26:18 +0100, arturs napisał(a):
>
>> konkretnie przy AData: TArray<System.Byte>;
>>
>> może ktoś podrzucić co trzeba zmienić żeby działało..
>
> A jakie Delphi? Moze nie masz wsparcia dla generykow?
>
Delphi XE..

na około zadziałało tak:


Type

   TMyByte = System.Byte;


i dalej:


     procedure IdUDPServer1UDPRead(AThread: TIdUDPListenerThread;
       AData: TArray<TMyByte>; ABinding: TIdSocketHandle);

i np. w  oncreate formy:

IdUDPServer1.OnUDPRead:=IdUDPServer1UDPRead;

ale irytujące bo nie da się z komponentu wejść do procedury..
Technical Details
Message-ID: <jdv4im$8sr$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <jdv36d$4bc$1@inews.gazeta.pl> <eivrmeqlgsis.dlg@hell.heaven>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: arturs <nie@ma.mnie.tu>
Newsgroups: pl.comp.lang.delphi
Subject: Re: Problem z idUDPServer
Date: Tue, 03 Jan 2012 15:49:56 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 30
Message-ID: <jdv4im$8sr$1@inews.gazeta.pl>
References: <jdv36d$4bc$1@inews.gazeta.pl> <eivrmeqlgsis.dlg@hell.heaven>
NNTP-Posting-Host: htm34.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1325602198 9115 79.188.246.34 (3 Jan 2012 14:49:58 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 3 Jan 2012 14:49:58 +0000 (UTC)
X-User: artstarz
In-Reply-To: <eivrmeqlgsis.dlg@hell.heaven>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit