Latest Additions

April 25, 2012
UDT - UDP Data Transfer
UDP Data Transfer UDP based Data Transfer Protocol UDT is a high performance data transfer...
April 09, 2011
FTP Queue Server
Design Overview The goal was to develop a revision to the standard FTP server which allows people...

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 203 hits. These are popular related words: