[racket] sending imgaes via tcp

From: Rüdiger Asche (rac at ruediger-asche.de)
Date: Thu Apr 11 12:29:10 EDT 2013

tcp doesn't care about what is sent via it. You open a TCP port (how to do this has I believe been pointed out to you thoroughly), then you send the image as a raw data stream. You better make sure that both sides are informed about the length of the data - in JPG, this information is part of the header; if you wish to be more generic, you can define your own layer 5 protocol (in the simplest case, sent the length of the data stream to follow followed by the raw data). Of course such a scheme can be used for all type of data, not just images.

  ----- Original Message ----- 
  From: deepak verma 
  To: users 
  Sent: Thursday, April 11, 2013 12:02 PM
  Subject: [racket] sending imgaes via tcp


  how can we send images via tcp?


------------------------------------------------------------------------------


  ____________________
    Racket Users list:
    http://lists.racket-lang.org/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130411/945b7762/attachment.html>

Posted on the users mailing list.