LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2006, 01:08 PM   #1
Diabolic_Soul
LQ Newbie
 
Registered: Dec 2006
Distribution: Mandriva 2007
Posts: 2

Rep: Reputation: 0
Question 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 !

Last edited by Diabolic_Soul; 12-27-2006 at 01:59 PM.
 
Old 12-27-2006, 05:57 PM   #2
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
Welcome to LQ!
It's just an idea, but couldn't you send the int as a string using sprintf()?
 
Old 12-27-2006, 06:16 PM   #3
Diabolic_Soul
LQ Newbie
 
Registered: Dec 2006
Distribution: Mandriva 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I did at alone.......

10x anyway
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lynx browser, alternate mail client for sending comments to website authors SharpyWarpy Linux - Software 2 08-04-2005 10:21 AM
Sending message from server to client paulwong Linux - Networking 6 07-22-2005 09:55 AM
sending Objects from Server to Client djgerbavore Programming 0 10-04-2004 12:09 PM
mod_perl and sending files to the client devinWhalen Linux - Software 0 05-18-2004 11:27 AM
Refresh client user list at autentication client/server network. robertoneto123 Linux - Networking 0 11-11-2003 10:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration