struct hostent * gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t bufsiz, int *he) { struct getnamaddr info; info.hp = hp; info.buf = buf; info.buflen = bufsiz; info.he = he; return getby(_hf_gethtbyname, &info, name, 0, AF_INET); }
struct hostent * gethostbyaddr_r(const void *addr, socklen_t len, int type, struct hostent *hp, char *buf, size_t bufsiz, int *he) { struct getnamaddr info; info.hp = hp; info.buf = buf; info.buflen = bufsiz; info.he = he; return getby(_hf_gethtbyaddr, &info, addr, len, type); }
void Obstacle::setX2 ( double xIn ) { setPosition ( getax(), getay(), xIn, getby() ); }
void Obstacle::setY1 ( double yIn ) { setPosition ( getax(), yIn, getbx(), getby() ); }
void Obstacle::setX1 ( double xIn ) { setPosition ( xIn, getay(), getbx(), getby() ); }