socket problem

This is a discussion on socket problem within the Linux Networking forums, part of the Linux Forums category; Hey everyone, I am doing an image server project. The image format is *ppm(Portable Pixel map). When client request ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2003
Charles
 
Posts: n/a
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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0