lol, thats funny. you opening socket on the port and then trying to set up rpcapd on the same port which is busy yet!<br><br><div class="gmail_quote">2010/7/27 vishwesh jatala <span dir="ltr">&lt;<a href="mailto:vishwesh_jatala@yahoo.com">vishwesh_jatala@yahoo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
Hi,<br><br>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).<br><br>Attached codes :<br>1.main.cpp<br>2.server.c (Simple C socket server program)<br>
<br>while executing I have done the following steps<br>1.Started the server by executing server.c(with some port eg.9898 as an argument)<br>2.Started the daemon rpcapd.exe -b 127.0.0.1 -p 9898 -n<br>   ( since the server is executing in the local machine)<br>
3. Started the execution of main program<br>   Out put :<br><span style="font-style: italic;">   Enter the device you want to list:</span><br style="font-style: italic;"><span style="font-style: italic;">   rpcap://              ==&gt; lists interfaces in
 the local machine</span><br style="font-style: italic;"><span style="font-style: italic;">   rpcap://hostname:port ==&gt; lists interfaces in a remote machine</span><br style="font-style: italic;"><span style="font-style: italic;">                          (rpcapd daemon must be up and running</span><br style="font-style: italic;">
<span style="font-style: italic;">                           and it must accept &#39;null&#39; authentication)</span><br style="font-style: italic;"><span style="font-style: italic;">     file://foldername     ==&gt; lists all pcap files in the give folder</span><br style="font-style: italic;">
<br style="font-style: italic;"><span style="font-style: italic;">     Enter your choice:<span style="font-weight: bold;"> rpcap://<a href="http://127.0.0.1:9898/" target="_blank">127.0.0.1:9898/</a></span></span><br><br>
    After this step it keeps on waiting ..and does not display any devices on this machine with this port?<br>   <br>     And also at the server side I see that connection is accepted(becz I see the conn accept msg) <br><br>
    So do I have to include any code on the server program to send the device list or it should automatically detect the devices??<br><br>    So any help on this would be really useful to me ....<br><br>Thanks in advance,<br>
Vishwesh<br>   <br></td></tr></tbody></table><br><br>_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br></blockquote></div><br>