Latest Additions

April 09, 2011
FTP Queue Server
Design Overview The goal was to develop a revision to the standard FTP server which allows people...
February 23, 2011
ExtJS Xtype List
xtype Class box Ext BoxComponent button Ext Button colorpalette Ext ColorPalette component Ext...

Site Search

Suggested Reading

Pages linked to here

DXSock Syslog Client

 uses
    dxsock6;
 
 var
    client:TBPDXSock;
 
 begin
    {$IFDEF FPC}
    client.init;
    {$ELSE}
    client:=TBPDXSock.Create;
    {$ENDIF}
    client.isUDPMode:=True;
    if client.connectto('127.0.0.1',514) then
       client.write(paramstr(1));
    {$IFDEF FPC}
    client.done;
    {$ELSE}
    client.Free;
    {$ENDIF}
 end.

call as:
 syslogsend "Testing 1, 2, 3"

See also Python Syslog Client
This topic was last modified on 04-05-2010 and has had 146 hits. These are popular related words: