<br><br><div><span class="gmail_quote">On 1/3/07, <b class="gmail_sendername">Damjan Jovanovic</b> &lt;<a href="mailto:damjan.jov@gmail.com">damjan.jov@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 1/4/07, Matthew Edlefsen &lt;<a href="mailto:matt.edlefsen@gmail.com">matt.edlefsen@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt; On 1/2/07, Damjan Jovanovic &lt;<a href="mailto:damjan.jov@gmail.com">damjan.jov@gmail.com
</a>&gt; wrote:<br>&gt; &gt; On 1/1/07, Matthew Edlefsen &lt;<a href="mailto:matt.edlefsen@gmail.com">matt.edlefsen@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt; Hi, I&#39;ve been trying to get a program that uses rpc to work on wine and
<br>&gt; I&#39;ve<br>&gt; &gt; &gt; been having some problems (my understanding is that isn&#39;t surprising).<br>&gt; The<br>&gt; &gt; &gt; goal is to be able to run a rpc server that sits and waits for<br>&gt; connections
<br>&gt; &gt; &gt; over tcp/ip (It&#39;s for doing distributed computing).&nbsp;&nbsp;My first problem<br>&gt; was<br>&gt; &gt; &gt; that I was using RpcServerUseProtseq which after looking at the code<br>&gt; noticed<br>&gt; &gt; &gt; will always fail with tcp/ip since it passes RpcServerUseProtseqEp NULL
<br>&gt; for<br>&gt; &gt; &gt; the endpoint which eventually causes<br>&gt; &gt; &gt; rpcrt4_protseq_ncacn_ip_tcp_open_endpoint to call<br>&gt; &gt; &gt; getaddrinfo with NULL for both the ip and port which I guess isn&#39;t
<br>&gt; allowed.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Anyways I altered my code to use a given endpoint instead and now it<br>&gt; tells<br>&gt; &gt; &gt; me:<br>&gt; &gt; &gt; fixme:rpc:RpcMgmtWaitServerListen not waiting for
<br>&gt; server<br>&gt; &gt; &gt; calls to finish<br>&gt; &gt;<br>&gt; &gt; Ah yes - that one!<br>&gt; &gt;<br>&gt; &gt; &gt; Does this mean the function just doesn&#39;t work?&nbsp;&nbsp;Is there any way around<br>&gt; it?<br>&gt; &gt;
<br>&gt; &gt; It does work. After calling RpcMgmtWaitServerListen, just sleep<br>&gt; &gt; forever. The RPC function calls come in on a different thread anyway.<br>&gt;<br>&gt; Ah great, thanks.<br>&gt;<br>&gt; &gt; &gt; I assume if it was easy to implement it would have already but just in
<br>&gt; case<br>&gt; &gt; &gt; what exactly needs to be done to get it working?<br>&gt; &gt;<br>&gt; &gt; I was wondering this too, Robert might know.<br>&gt; &gt;<br>&gt; &gt; &gt; I was also confused by the<br>&gt; &gt; &gt; differences between the online git tree and the LXR/what actually gets
<br>&gt; &gt; &gt; downloaded to my computer.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; To be honest I&#39;m pretty new to wine and linux in general but it would be<br>&gt; &gt; &gt; absolutely wonderful to get this working.<br>
&gt; &gt;<br>&gt; &gt; Good luck.<br>&gt; &gt;<br>&gt; &gt; &gt; Thanks in advance - Matt Edlefsen<br>&gt; &gt;<br>&gt; &gt; Damjan<br>&gt;<br>&gt;&nbsp;&nbsp; I set my server to sleep right after it starts listening but I still can&#39;t
<br>&gt; connect to it for some reason.&nbsp;&nbsp;You (or anyone else) don&#39;t happen to have<br>&gt; any example code that you know works that I could start with?&nbsp;&nbsp;Anyways,<br>&gt; thanks so much for the help - Matt Edlefsen<br>
<br>I&#39;ll try running my test code on the latest wine and send it if it works.<br><br>Is the port open?<br><br>Damjan</blockquote><div><br>Pretty sure.&nbsp; The only reason I say that is that when I test it I have to change to the port every test because if I don&#39;t it says the port is in use (I guess the program isn&#39;t closing the port or something).&nbsp; Honestly I still don&#39;t fully understand how rpc finds the port number, which may be the problem.&nbsp; When using RpcServerUseProtseq on Windows, according to msdn,&nbsp; &quot;the port number is dynamically determined by the RPC run time, depending on availability and registry settings.&quot;&nbsp; If that&#39;s the case how does the client know what port to connect to?&nbsp; Since I&#39;m using RpcServerUseProtSeqEp instead on Linux would that change things?&nbsp; I&#39;ll try specifying&nbsp; the port in the client and seeing if that works.
<br><br>Matt Edlefsen<br></div><br></div><br>