aber nun das problem :|
hab beim coden unter linux keine probs. funktioniert 1a ...
aber unter tuxbox bleibt er beim
connect(
stecken und bricht mit connection-timeout ab ...
hier der source schnippsel:
int sockfd, numbytes;
char c,lc[4096],sl[4096];
int lx = 0;
int ui = 0;
int uj = 0;
struct hostent *he;
struct sockaddr_in their_addr;
printf("gethostname\n");
if ((he=gethostbyname(accounts[ix].host)) == NULL) { perror("gethostbyname"); exit(1); }
printf("socket\n");
if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); exit(1); }
their_addr.sin_family = AF_INET; // host byte order
their_addr.sin_port = accounts[ix].port; // short, network byte order
their_addr.sin_addr = *((struct in_addr *)he->h_addr);
memset(&(their_addr.sin_zero), '\0',

printf("connect\n");
if (connect(sockfd, (struct sockaddr *)&their_addr, sizeof(struct sockaddr)) == -1) {
^^^^^^^^^^^^ das der point of timeout :|
ich kann die box-telnet'n und unter linux-normal funktioniert's 1a .... gibts für tuxbox irgendwas spezielles was man dabei beachten muss ?
perror("connect"); exit(1); }
printf("recv\n");
c = 0; lx = 0; while (c != 10) { if (recv(sockfd, &c,1,0) == -1) perror("recv"); lc[lx] = c; lx++; } lc[lx] = '\0';
printf("got: %s\n",lc);
strcpy(sl,"USER "); strcat(sl,accounts[ix].user); strcat(sl,"\r\n"); send(sockfd,sl,strlen(sl),0);
c = 0; lx = 0; while (c != 10) { if (recv(sockfd, &c,1,