/[svn]/liblscp/trunk/src/socket.c
ViewVC logotype

Diff of /liblscp/trunk/src/socket.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 78 by capela, Mon May 17 18:08:07 2004 UTC revision 144 by capela, Thu Jun 24 18:25:11 2004 UTC
# Line 104  void lscp_socket_perror ( const char *ps Line 104  void lscp_socket_perror ( const char *ps
104      fprintf(stderr, "%s: %s (%d)\n", pszPrefix, pszError, iError);      fprintf(stderr, "%s: %s (%d)\n", pszPrefix, pszError, iError);
105  }  }
106    
107    void lscp_socket_herror ( const char *pszPrefix )
108    {
109        lscp_socket_perror(pszPrefix);
110    }
111    
112  #else  #else
113    
114  void lscp_socket_perror ( const char *pszPrefix )  void lscp_socket_perror ( const char *pszPrefix )
# Line 111  void lscp_socket_perror ( const char *ps Line 116  void lscp_socket_perror ( const char *ps
116      perror(pszPrefix);      perror(pszPrefix);
117  }  }
118    
119    void lscp_socket_herror ( const char *pszPrefix )
120    {
121        herror(pszPrefix);
122    }
123    
124  #endif  #endif
125    
126    
# Line 190  void lscp_socket_agent_init ( lscp_socke Line 200  void lscp_socket_agent_init ( lscp_socke
200      memset(pAgent, 0, sizeof(lscp_socket_agent_t));      memset(pAgent, 0, sizeof(lscp_socket_agent_t));
201    
202      pAgent->sock = sock;      pAgent->sock = sock;
     memmove((char *) &(pAgent->addr), pAddr, cAddr);  
203      pAgent->pThread = NULL;      pAgent->pThread = NULL;
204      pAgent->iState = 0;      pAgent->iState = 0;
205    
206        if (pAddr)
207            memmove((char *) &(pAgent->addr), pAddr, cAddr);
208  }  }
209    
210    

Legend:
Removed from v.78  
changed lines
  Added in v.144

  ViewVC Help
Powered by ViewVC