version 1.3, 2012/06/28 11:06:17
|
version 1.3.12.1, 2016/09/14 15:52:36
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | Copyright 2004 - 2016 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 75 mqtt_cli_Open(struct sockaddr *addr, u_short timeout)
|
Line 75 mqtt_cli_Open(struct sockaddr *addr, u_short timeout)
|
free(cli); |
free(cli); |
return NULL; |
return NULL; |
} |
} |
|
#ifndef __linux__ |
if (connect(cli->sock, addr, addr->sa_len) == -1) { |
if (connect(cli->sock, addr, addr->sa_len) == -1) { |
|
#else |
|
if (connect(cli->sock, addr, addr->sa_family == AF_INET6 ? |
|
sizeof(struct sockaddr_in6) : |
|
sizeof(struct sockaddr_in)) == -1) { |
|
#endif |
LOGERR; |
LOGERR; |
close(cli->sock); |
close(cli->sock); |
free(cli); |
free(cli); |