Re: How to trace the send() in client call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Augusto,


But there will be other packets also coming from the network like if some one is browsing the net on mozilla.
I only want to trace the send() calls that i have used in my code,is that possible?


Regards



On Tue, May 27, 2014 at 3:49 AM, Augusto Mecking Caringi <augustocaringi@xxxxxxxxx> wrote:
On Mon, May 26, 2014 at 1:48 PM, Robert Clove <cloverobert@xxxxxxxxx> wrote:
Hi All,

I need your help.
I have written the client server program in which client is sending the packets to the server.
I want to trace the "send()" that is used in the client program actually want to trace the system call  the packet traverses .
How to trace ?

Hi Robert,

    You can use the strace command line tool.

    There is an argument to trace only network related syscalls:

    -e trace=network
                   Trace all the network related system calls.

    Take a look on the strace manual page for more information.

    Best regards.

-- 
Augusto Mecking Caringi 

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux