- Added reflection generation for symmetriqally missing reflections

to fourmess
- Fixed hdbtable, reflist and tasub up to work with GTSE
- Made TRICS do fast scans again
- Added support for SANS beam center calculations
- Fixed a bug where SICS apparently did double counting but in fact
  just omitted an error message and did not
- Added the harray command
This commit is contained in:
koennecke
2009-08-13 07:28:44 +00:00
parent eb5025ab3b
commit 98009be4c3
22 changed files with 653 additions and 80 deletions

View File

@ -221,19 +221,21 @@ int ANETconnect(char *name, int iPort)
struct hostent *host;
int socke, status;
/* check for aaa.bbb.ccc.ddd first */
addr.s_addr = inet_addr(name);
if (addr.s_addr < 0) {
host = gethostbyname(name);
if (host == NULL) {
anetLog(ANETERROR, "Failed to locate host: %s", name);
return ANETOPENFAIL;
}
memcpy(&addr, host->h_addr_list, sizeof(struct in_addr));
}
memset(&addresse, 0, sizeof(struct sockaddr_in));
addresse.sin_family = AF_INET;
addresse.sin_port = htons((unsigned short)(iPort &0xFFFF));
host = gethostbyname(name);
if (host != NULL) {
memcpy((char *) &addr,
(char *)host->h_addr_list[0], (size_t)host->h_length);
} else {
/* check for aaa.bbbb.ccc.dddd */
addr.s_addr = inet_addr(name);
if(addr.s_addr == (unsigned long) -1) {
anetLog(ANETERROR, "Failed to locate host: %s", name);
return ANETOPENFAIL;
}
}
addresse.sin_addr.s_addr = addr.s_addr;
socke = socket(AF_INET, SOCK_STREAM, 0);
status = connect(socke, (struct sockaddr *) &addresse,