Sending objects using sockets and NSFileHandles I'm working with some sockets and file handles for the first time, and I want to send an image across a network, would this be an appropriate way to do it (conceptually): 1. Client sends string message "image" to server (using writeData:) 2. Server receives string data "image", and so sends image as data (using writeData:) 3. Client now receives image data and converts it to an NSImage. Is this the appropriate way to send images and other objects? Or is there a more conventional method.
Sending objects using sockets and NSFileHandles I'm working with some sockets and file handles for the first time, and I want to send an image across a network, would this be an appropriate way to do it (conceptually): 1. Client sends string message "image" to server (using writeData:) 2. Server receives string data "image", and so sends image as data (using writeData:) 3. Client now receives image data and converts it to an NSImage. Is this the appropriate way to send images and other objects? Or is there a more conventional method.
- Subject: Sending objects using sockets and NSFileHandles I'm working with some sockets and file handles for the first time, and I want to send an image across a network, would this be an appropriate way to do it (conceptually): 1. Client sends string message "image" to server (using writeData:) 2. Server receives string data "image", and so sends image as data (using writeData:) 3. Client now receives image data and converts it to an NSImage. Is this the appropriate way to send images and other objects? Or is there a more conventional method.
- From: Francisco Tolmasky <email@hidden>
- Date: Fri, 31 Oct 2003 14:09:49 -0800
I'm working with some sockets and file handles for the first time, and
I want to send an image across a network, would this be an appropriate
way to do it (conceptually):
1. Client sends string message "image" to server (using writeData:)
2. Server receives string data "image", and so sends image as data
(using writeData:)
3. Client now receives image data and converts it to an NSImage.
Is this the appropriate way to send images and other objects? Or is
there a more conventional method.
Thank you for you time,
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.