-   Programming (
-   -   Sending integer from server to client (

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 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 04:32 AM.