I've just started programing, using C language and UDP Sockets (in Linux);
(so I have a few problems)
I have two programs (client and server);
-Client send (interactive) request information about server network
should do this request
and send it to client
??????? HOW ??????
variable1 = system("/sbin/ifconfig")
doesn't work (problem with buffer, even I set it bigger),
if I change sprintf into printf - information about network configuration
will be appear on server screen - of course,
but how send it to Client?
(maybe first write to file, and then to buffer - gradually, after this send
it to Client
- if it's good idea - how write it?
Big thanks for any answer