Forum Discussion
Altera_Forum
Honored Contributor
18 years agoproblem changing static IP in socket server application
I'm trying to test simple sockect server example in Cyclone III NIOS II eval kit using NIOS IDE 8.0. I checked this example in my old version 7.2 of Quartus and it worked fine!!! I tried ...
Altera_Forum
Honored Contributor
18 years agoWhat about with the endianess?
try whit this code: unsigned int htonl (unsigned int x) { # if BYTE_ORDER == LITTLE_ENDIAN unsigned char *s = (unsigned char *) &x; return (unsigned int) (s[0] << 24 | s[1] << 16 | s[2] << 8 | s[3]); # else return x;# endif }