[Winpcap-users] Need help on small problem

vishwesh jatala vishwesh_jatala at yahoo.com
Tue Jul 27 01:46:58 PDT 2010


Hi,

I am trying to test one small program in which...the program is not listing the devices that are present in the remote machine. (it keeps waiting there).

Attached codes :
1.main.cpp
2.server.c (Simple C socket server program)

while executing I have done the following steps
1.Started the server by executing server.c(with some port eg.9898 as an argument)
2.Started the daemon rpcapd.exe -b 127.0.0.1 -p 9898 -n
   ( since the server is executing in the local machine)
3. Started the execution of main program
   Out put :
   Enter the device you want to list:
   rpcap://              ==> lists interfaces in the local machine
   rpcap://hostname:port ==> lists interfaces in a remote machine
                          (rpcapd daemon must be up and running
                           and it must accept 'null' authentication)
     file://foldername     ==> lists all pcap files in the give folder

     Enter your choice: rpcap://127.0.0.1:9898/

    After this step it keeps on waiting ..and does not display any devices on this machine with this port?
   
     And also at the server side I see that connection is accepted(becz I see the conn accept msg) 

    So do I have to include any code on the server program to send the device list or it should automatically detect the devices??

    So any help on this would be really useful to me ....

Thanks in advance,
Vishwesh
   


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20100727/1c2f4d33/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: application/octet-stream
Size: 2990 bytes
Desc: not available
Url : http://www.winpcap.org/pipermail/winpcap-users/attachments/20100727/1c2f4d33/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.c
Type: text/x-c
Size: 2857 bytes
Desc: not available
Url : http://www.winpcap.org/pipermail/winpcap-users/attachments/20100727/1c2f4d33/attachment.bin 


More information about the Winpcap-users mailing list