Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-08 Thread lloyd thomas
specified number of packets have been processed. Is there a way I can fork tcpdump as a seperate process and kill it when required? 2010/1/6 lloyd thomas > OK I think I know the reason why 'ansichar' > Just did a bit of code to list the net adaptors in a combobox and All I

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
ct); begin Fzniffer := TZniffer.create; Combobox1.Items.assign(Fzniffer.Adapters); end; 2010/1/6 Marco van de Voort > In our previous episode, lloyd thomas said: > > I have managed to get the zniffer wrapper to compile, but I am worried > that > > using {$MODE delphi} may no

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
ErrStr:string):string; function Pcap_getAdapternames(Delimiter:AnsiChar;var ErrStr:string):string; 2010/1/6 lloyd thomas > No Joy, I get exactly the same error. But putting the following at the > start of the unit got me to the next error (which I managed to fix ptr = > pointer) >

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
t; sf :Tpcap_sf; // Save file >> md :Tpcap_md; // Diagnostics >> //READ BUFFER >> bufsize :integer; >> buffer :Pointer; //*u_char >> bp :Pointer; //*u_char >> cc :int

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-06 Thread lloyd thomas
us all :)) and then you can > sniff packets (that's the easiest way I know). > > > Ido > http://ik.homelinux.org/ > > > On Tue, Jan 5, 2010 at 16:48, lloyd thomas wrote: > >> Also came across this which uses pcap, but seems to be delphi only >> http://

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-05 Thread lloyd thomas
Also came across this which uses pcap, but seems to be delphi only http://www.magsys.co.uk/delphi/magmonsock.asp is there something similar for fpc? 2010/1/5 lloyd thomas > OK. I wish to monitor and record calls between a SIP endpoint and SIP > Gateway. At the moment I am doing t

Re: [fpc-pascal] Help Reading SIP Messages.

2010-01-05 Thread lloyd thomas
imes (and rarely TCP) . > It only create a tunnel that other protocols such as RDP and SDP are going > inside. > > Can you explain a bit more what exactly do you wish to implement (i'm not > sure that I understand) ? > > Ido > > http://ik.homelinux.org/ > > >

[fpc-pascal] Help Reading SIP Messages.

2010-01-05 Thread lloyd thomas
Please forgive my ignorance regarding the project I am about to embark on. Need some advice on Lnet and capturing SIP RTP data to file. In the first instance I just need to work with the sip messages. I believe the SIP messages are similar to HTTP. I am using wireshark to understand how the SIP mes

[fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-12 Thread lloyd thomas
Need Help please "confini := ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I doing something wrong? The Problem is intermitent {$IFDEF Windows} confini := ExtractFilePath(GetModuleName(0))+'\Myfile.i

[fpc-pascal] ExtractFilePath(GetModuleName(0)) problem

2009-04-10 Thread lloyd thomas
Need Help please "confini := ExtractFilePath(GetModuleName(0))+'\myfile.ini';" returns C:Program FilesMyApp\myfile.ini should be C:\Program Files\MyApp\myfile.ini . Am I doing something wrong? The Problem is intermitent {$IFDEF Windows} confini := ExtractFilePath(GetModuleName(0))+'\Myfile.i