Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

socket problem

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2003, 09:46 PM
Default socket problem



Hey everyone,

I am doing an image server project. The image format is *ppm(Portable
Pixel map). When client request a image to server, server store a
iamge into a data structure ,called pixarray. The pixarray contains
entire image info. How can I write it to socket and client read it
from socket by using write() and read()? Because I could only handle
text under the argument of socket functions read(int client_sock,char*
text, int size) and write(int server_sock,char* text, int size).

Thanks,

--Charles


Charles
Reply With Quote
Reply

Tags
problem, socket

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.