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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |