• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
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.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Authorization Services Username/Password?
  • Next by Date: Re: NSButtonCell in NSTableView: How can I define button action?
  • Previous by thread: Authorization Services Username/Password?
  • Next by thread: Easy(?) Cocoa Question
  • Index(es):
    • Date
    • Thread