LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Sending integer from server to client (http://www.linuxquestions.org/questions/programming-9/sending-integer-from-server-to-client-514083/)

Diabolic_Soul 12-27-2006 01:08 PM

Sending integer from server to client
 
Hello !

I'em new to the world of linux and C language and i need a simple example. I made a simple server and client.......no problem sending string but i dont now how to send Integer. It is silly yes.

Can you give me a simple example whit "send()" and "resv()".

Thank you !

burninGpi 12-27-2006 05:57 PM

Welcome to LQ! :)
It's just an idea, but couldn't you send the int as a string using sprintf()?

Diabolic_Soul 12-27-2006 06:16 PM

I did at alone.......

10x anyway :)


All times are GMT -5. The time now is 05:06 PM.