Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
clean up
Source Link
Ben Jackson
  • 94.6k
  • 9
  • 103
  • 154

Passing a strucstruct from client to server using UDP sockets in cC

I am looking for a couple things. I looking to know how toHow do you pass a structure from the UDP client to the UDP server in C using sockets. Then I am also wondering how to? How can you access the variables that structure contains. So if on the server? If the structure below is transmitted, how does the server see what the name or age is. Hope you guys can help, and happy coding.?

struct animal {  int age;  char name[25]; }; 

Passing a struc from client to server using UDP sockets in c

I am looking for a couple things. I looking to know how to pass a structure from the UDP client to the UDP server in C using sockets. Then I am also wondering how to access the variables that structure contains. So if the structure below is transmitted how does the server see what the name or age is. Hope you guys can help, and happy coding.

struct animal { int age; char name[25]; }; 

Passing a struct from client to server using UDP sockets in C

How do you pass a structure from the UDP client to the UDP server in C using sockets? How can you access the variables that structure contains on the server? If the structure below is transmitted, how does the server see what the name or age is?

struct animal {  int age;  char name[25]; }; 
Source Link
jnics23
  • 29
  • 1
  • 8

Passing a struc from client to server using UDP sockets in c

I am looking for a couple things. I looking to know how to pass a structure from the UDP client to the UDP server in C using sockets. Then I am also wondering how to access the variables that structure contains. So if the structure below is transmitted how does the server see what the name or age is. Hope you guys can help, and happy coding.

struct animal { int age; char name[25]; };