title: How to correct -> cannot convert sockaddr** to sockaddr* for arg 5 of recvfrom()
body: <p>I get the above compiler error.</p>
  
  <p>I am opening one send and one receive socket in my main,   Calling a function passing socket handles and other socket info to the function so I can do the send and receive in that function.</p>
  
  <p>here's a shortened and incomplete version of the code.</p>
  
  <pre><code>Main()
  {
  sockaddr_in _remote_address;
  sockaddr_in address;
  sockaddr sender_address;
  
  temp_build(6, _rsckt, _sckt, &amp;_remote_address, &amp;sender_address, LOGGING);
  
  {
  
  void function (int msg_id, int rsckt, int sckt, struct sockaddr_in* _remote_address, struct sockaddr* sender_address, int logflag)
  
  **Here’s the compiler error**
  
  cannot convert  ‘sockaddr**’  to  ‘sockaddr*’  for argument ‘5’  to  ‘ssize_t recvfrom(int, void*,size_t, int, sockaddr* socklen_t*)’
  </code></pre>