<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=248309</guid>
        <pubDate>Wed, 19 Nov 2003 10:21:03 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=248309</link>
        <description><![CDATA[Song:  Ну тогда Str.WriteBuffer(buf[0],SizeOf(buf)); ]]></description>
        <author>Song</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=248232</guid>
        <pubDate>Wed, 19 Nov 2003 08:43:25 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=248232</link>
        <description><![CDATA[KIL:  type <br>Mass : array of char; <br> ]]></description>
        <author>KIL</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=248129</guid>
        <pubDate>Wed, 19 Nov 2003 05:55:47 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=248129</link>
        <description><![CDATA[Song:  Что такое Mass ? ]]></description>
        <author>Song</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247986</guid>
        <pubDate>Tue, 18 Nov 2003 19:39:46 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247986</link>
        <description><![CDATA[KIL:  всмысле 1.txt  - около 3mb а воодще он даже 1б не хочет слать&#33; <br><br> <b>Добавлено в</b> <time class="tag-mergetime" datetime="2003-11-18T19:46:29+00:00">18.11.03, 19:46</time> <br> Нет Write тоже пишет &quot;0&quot;..<br><br>Есть у кого пример? ]]></description>
        <author>KIL</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247914</guid>
        <pubDate>Tue, 18 Nov 2003 17:31:34 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247914</link>
        <description><![CDATA[Song:  1. exe какого размера? ]]></description>
        <author>Song</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247906</guid>
        <pubDate>Tue, 18 Nov 2003 17:20:41 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247906</link>
        <description><![CDATA[Guest:  ИМХО не КлиентРеад а КлиентВрайт ]]></description>
        <author>Guest</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247899</guid>
        <pubDate>Tue, 18 Nov 2003 17:11:33 +0000</pubDate>
        <title>Sockets</title>
        <link>https://forum.sources.ru/index.php?showtopic=38275&amp;view=findpost&amp;p=247899</link>
        <description><![CDATA[KIL:  //////////Клиент<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br>  str : TFileStream;<br>begin<br>  clientsocket1.Active:=true;<br>  str := TFileStream.Create(&#39;C:&#092;1.exe&#39;,fmOpenRead);<br>  str.Position := 0;<br>  ClientSocket1.Socket.SendStream(str);<br><br>  clientsocket1.Active:=false;<br>  ClientSocket1.Close;<br>end;<br><br><br>/////////Сервер <br><br>procedure TForm1.ServerSocket1ClientRead(Sender: TObject; Socket: TCustomWinSocket);<br>var<br>  ibLen : integer;<br>  buf : Mass;<br>  str : TMemoryStream;<br>begin<br>  ibLen := ServerSocket1.Socket.ReceiveLength;<br>  SetLength(buf,ibLen+1);<br>  showmessage(inttostr(iblen));<br>  str := TMemoryStream.Create;<br>  str.Position := 0;<br>// Showmessage(Socket.ReceiveText);  - вот здесь всегда ноль&#33;&#33;&#33;<br>  Socket.ReceiveBuf(buf,ibLen);<br>  str.WriteBuffer(buf,ibLen);<br>  str.Position := 0;<br>  str.SaveToFile(&#39;c:&#092;2.txt&#39;);<br>  SetLength(buf,0);<br>  str.Free;<br>end;<br><br><br>ЧТО НЕТАК??? ]]></description>
        <author>KIL</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      </channel>
      </rss>
	