/[monit]/monit/net.c
ViewVC logotype

Diff of /monit/net.c

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

revision 1.20 by hauk, Thu Jul 24 00:35:25 2003 UTC revision 1.21 by hauk, Fri Jul 25 15:01:15 2003 UTC
# Line 263  int create_socket(char *hostname, int po Line 263  int create_socket(char *hostname, int po
263   * @param pp connection description   * @param pp connection description
264   * @return The socket or -1 if an error occured.   * @return The socket or -1 if an error occured.
265   */   */
266  int create_generic_socket(Port_T pp) {  int create_generic_socket(Port_T p) {
267    
268    int socket_fd= -1;    int socket_fd= -1;
269    
270    ASSERT(pp);    ASSERT(p);
271    
272    if(pp->family == AF_INET) {    if(p->family == AF_INET) {
273    
274      socket_fd= create_socket(pp->hostname, pp->port, pp->type);      socket_fd= create_socket(p->hostname, p->port, p->type);
275    
276    } else if(pp->family == AF_UNIX) {    } else if(p->family == AF_UNIX) {
277    
278      socket_fd= create_unix_socket(pp->pathname, pp->type);      socket_fd= create_unix_socket(p->pathname, p->type);
279    
280    }    }
281    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26