English 中文(简体)
我如何在青少年申请中使用TIdUDPServer?
原标题:How can I use TIdUDPServer in a console application?

由于我只看到新电文出现,而模拟曲线在包含服务器组成部分的形式上移动时,才会出现。

I created the component at run time using this code:

private
    { Private declarations }
    Srv: TIdUDPServer;
...
procedure TForm1.FormCreate(Sender: TObject);
begin
  Srv := TIdUDPServer.Create(Self);
  Srv.DefaultPort := 9009;
  Srv.OnUDPRead := Self.udpServerUDPRead;
  Srv.Active := True;
end;

我更喜欢使用专断或服务。 我是否需要一个(无形的)窗口来处理+某些窗户信息密码,使这一组成部分发挥作用?

最新情况:一些(非正式)documentation 说:

TIdUDPServer when active creates a listening thread to listen for inbound UDP packets. ... When ThreadedEvent is false, the OnUDPRead event will be fired in the context of the main program thread. When ThreadedEvent is true, the OnUDPRead event is fired in the context of the listener thread.

最佳回答

如果你使用透镜,那么你不需要Windows电文或表格。 刚刚准备好的通风,能够真实地处理,同时牢记,这个活动正处在不同的轨道上,因此你必须处理“同步化”。 我这样做的唯一途径是利用从自己的内部问讯(我的电文和我的问讯,而不是视窗信息或问询)处理电线,这样,活动手就用收到的数据向read子发出信息,在“视线”的透镜而不是因迪听器的透镜中处理。

问题回答

暂无回答




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签