On 2012-07-23 21:51, Mark Morgan Lloyd wrote:
I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At
present it's using an unprivileged socket so as to avoid problems on unix
platforms.
I appear to be having problems at the bind() call for IP6 (returns -1), which I
suspec
Great, I got this working now.
This is one small step better because the only string identifier used in code
for the interface is in the declaration itself so if the name of the interface
gets changed I'll get compiler warnings when I try to invoke it.
Thanks.
On Jul 26, 2012, at 8:41 AM, Lud
http://www.freepascal.org/docs-html/rtl/sysutils/supports.html
> I'm getting an identifier not found error with the procedure
> "Supports". Where is this defined?
>
>
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal
On Jul 26, 2012, at 2:32 AM, Graeme Geldenhuys wrote:
>
> You could also try the Supports() method. eg:
>
> if Supports(delegate, IMyInterface, intfDelegate) then
> intfDelegate.DoThis(1);
I'm getting an identifier not found error with the procedure "Supports". Where
is this defined?
>
On 24 July 2012 15:13, Ryan Joseph wrote:
> procedure InvokeDelegate (delegate: TObject);
> var
> intfDelegate: IMyInterface;
> begin
> ERROR > intfDelegate := IMyInterface(delegate);
> intfDelegate.DoThis(1);
> end;
You could also try the Supports() method. eg:
i