<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 09/05/11 11:10 AM, Jeppi Jeppi wrote:
    <blockquote cite="mid:SNT141-w9849B7BACE76370F4C470B2840@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      Hey,
      <div>looking at the functionality of [tcpclient] and [tcpserver]
        objects, I see there is a way to "send a file" through the TCP
        connection. What does this means? could you effectively send
        files from the filesystem? if so, where are them expected to be
        stored by the other end?</div>
      <div>It looks exciting but I didn't manage to send anything but
        numbers yet...no real files. Maybe I didn't undestand it?</div>
      <div><br>
      </div>
    </blockquote>
    <br>
    If the data you're sending is a symbol instead of numbers, the
    symbol will be interpreted as a file name, so [client 1 hello.jpg(
    will send hello.jpg as raw bytes. The other end will just receive
    the raw bytes, so it would need to know what to do with it. I made a
    pair of [httpreq] and [httpreceive] objects that will work together
    with [tcpserver] and [tcpclient] to simplify http requests and
    reception on (usually) port 80. I still need to make a [packhttp]
    object that will send stuff with the proper header.<br>
    <br>
    Martin<br>
    <br>
  </body>
</html>