Forum Discussion
Altera_Forum
Honored Contributor
10 years agoSimple Socket Server question (data length in UDP packets)
Hello, Current Hardware used: Cyclone V GT Dev. Kit Background: I'm a 3rd year engineering student working as an intern. I am new to FPGA's, ethernet communications, and have little c...
Altera_Forum
Honored Contributor
10 years agoYour problem is sizeof(message) is equal to 4.
You probably want something like strlen(message) instead. char *message is a pointer, sizeof() = 4. char message[1024] is an array, sizeof() = 1024