<?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=316812&amp;view=findpost&amp;p=3814629</guid>
        <pubDate>Tue, 12 Nov 2019 11:34:57 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=3814629</link>
        <description><![CDATA[STest69: <strong class='tag-b'>VFaust</strong><br>
У вас что то получилось? Интересен результат)]]></description>
        <author>STest69</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2737773</guid>
        <pubDate>Thu, 28 Oct 2010 07:33:48 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2737773</link>
        <description><![CDATA[VFaust: Я пробовал подключаться к собственному серверному приложению и всё работало, даже порт использовал тот же...<br>
<br>
CommView видит данные, и я хочу принимать вот такие &quot;специфические&quot; пакеты... <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-10-28T07:36:38+00:00">28.10.10, 07:36</time></span></span><br>
На другом форуме мне предложили <br>
<br>
Цитата:<br>
Ну для отпетых извращенцев есть еще способ  - cотворить файрвол и в интересующих пакетах менять PSH c 0 на 1]]></description>
        <author>VFaust</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736969</guid>
        <pubDate>Wed, 27 Oct 2010 11:05:32 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736969</link>
        <description><![CDATA[medved_68: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=316812&view=findpost&p=2736731'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>VFaust &#064; <time class="tag-quote__quoted-time" datetime="2010-10-27T07:53:01+00:00">27.10.10, 07:53</time></span><div class='quote '>Проблема не в отправлении, а в приеме...</div></div><br>
Ну в таком случае могу посоветовать поднять серверное приложение и этим клиентом попробовать подконнектиться к нему (например, на локалхост). И убедиться, что то, что посылаешь с сервера на клиенте нормально принимается. Если это будет так, а с девайса не сможешь принимать - тогда только изучать, почему так, углубившись в мануалы по девайсу (если он стороннего производителя)... :D А вот если прием и здесь &quot;захромает&quot;, тогда уже и &quot;репу морщить&quot; в сторону нормальности компонента и т.д....]]></description>
        <author>medved_68</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736731</guid>
        <pubDate>Wed, 27 Oct 2010 07:53:01 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736731</link>
        <description><![CDATA[VFaust: Проблема не в отправлении, а в приеме...<br>
<br>
Фото пакета который я отсылаю<br>
<img class='tag-img' src='http://www.imghost.in/images/65xjap5vez0amb51zvhr.gif' alt='user posted image'><br>
<br>
Фото пакета, который я не могу получить<br>
<img class='tag-img' src='http://www.imghost.in/images/veicziy6uu3fbgssl54y.gif' alt='user posted image'><br>
<br>
Красным выделены различия, как мне кажется из-за которых я не вижу пакета...<br>
Зеленым выделены данные...]]></description>
        <author>VFaust</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736557</guid>
        <pubDate>Wed, 27 Oct 2010 04:33:27 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736557</link>
        <description><![CDATA[medved_68: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=316812&view=findpost&p=2736456'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>VFaust &#064; <time class="tag-quote__quoted-time" datetime="2010-10-26T19:04:12+00:00">26.10.10, 19:04</time></span><div class='quote '>Как только я посылаю 4ю посылку у меня дисконнект...<br>
Судя по логам CommView дисконнект происходит с моей стороны (если такое событие имеет инициатора)... </div></div><br>
Показывай, как посылаешь... :D <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-10-27T04:37:31+00:00">27.10.10, 04:37</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=316812&view=findpost&p=2735814'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>VFaust &#064; <time class="tag-quote__quoted-time" datetime="2010-10-26T10:21:11+00:00">26.10.10, 10:21</time></span><div class='quote '>На кнопку отсылаю ClientSocket1.Socket.SendText(#00);</div></div><br>
Как вариант - попробуй воспользоваться методом <strong class='tag-b'>SendBuf</strong>... :huh:]]></description>
        <author>medved_68</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736456</guid>
        <pubDate>Tue, 26 Oct 2010 19:04:12 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736456</link>
        <description><![CDATA[VFaust: Если ничего не отсылать, то дисконекта не происходит... (ждал 5 мин)...<br>
Как только я посылаю 4ю посылку у меня дисконнект...<br>
Судя по логам CommView дисконнект происходит с моей стороны (если такое событие имеет инициатора)... <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-10-26T19:12:59+00:00">26.10.10, 19:12</time></span></span><br>
Только что заметил маленький нюанс...<br>
При расшифровке пакета ComView в пакете подсвечивает части [Ethernet II], [IP], [TCP]...<br>
После области TCP я наблюдаю свои данные...&#33;&#33;&#33;&#33;, но в расшифровке эти данные не значатся..., а параметр TCP.Data length = 0...&#33;&#33;&#33; <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2010-10-26T19:43:10+00:00">26.10.10, 19:43</time></span></span><br>
Покопал еще...,  <br>
<br>
во всех исходящих пакетах<br>
IP -&gt; Flags -&gt; Don&#39;t fragment bit: 1 - Don&#39;t fragment<br>
<br>
а во входящих пакетах<br>
IP -&gt; Flags -&gt; Don&#39;t fragment bit: 0 - May fragment]]></description>
        <author>VFaust</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736444</guid>
        <pubDate>Tue, 26 Oct 2010 18:46:02 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736444</link>
        <description><![CDATA[medved_68: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=316812&view=findpost&p=2736400'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>VFaust &#064; <time class="tag-quote__quoted-time" datetime="2010-10-26T17:52:15+00:00">26.10.10, 17:52</time></span><div class='quote '>Есть событие onConnect затем onWrite,</div></div><br>
Отлично.<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=316812&view=findpost&p=2736400'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>VFaust &#064; <time class="tag-quote__quoted-time" datetime="2010-10-26T17:52:15+00:00">26.10.10, 17:52</time></span><div class='quote '>после отправки 4й посылки появляется событие onDisconnect... </div></div><br>
Если ВООБЩЕ ничего не посылать - будет дисконнект через определенное время или нет? И это время одинаковое в случае если ты как сейчас посылаешь и когда вообще ничего не посылаешь? :D]]></description>
        <author>medved_68</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736400</guid>
        <pubDate>Tue, 26 Oct 2010 17:52:15 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736400</link>
        <description><![CDATA[VFaust: Есть событие onConnect затем onWrite, после отправки 4й посылки появляется событие onDisconnect...]]></description>
        <author>VFaust</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736392</guid>
        <pubDate>Tue, 26 Oct 2010 17:46:46 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2736392</link>
        <description><![CDATA[medved_68: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=316812&view=findpost&p=2735814'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>VFaust &#064; <time class="tag-quote__quoted-time" datetime="2010-10-26T10:21:11+00:00">26.10.10, 10:21</time></span><div class='quote '>Что не получается:<br>
1. Не происходит события onRead...</div></div><br>
После активации сокета (Open или Connect) было событие Connected?  (Пакеты пока вообще не посылаем)...:D]]></description>
        <author>medved_68</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2735814</guid>
        <pubDate>Tue, 26 Oct 2010 10:21:11 +0000</pubDate>
        <title>ClientSocket нет события onRead</title>
        <link>https://forum.sources.ru/index.php?showtopic=316812&amp;view=findpost&amp;p=2735814</link>
        <description><![CDATA[VFaust: Что имеется:<br>1. Контроллер (PLC) c Ethernet его IP=192.168.0.20 (порт для подключения 102);<br>2. Компьютер (PC) мой IP=192.168.0.12<br><br>Что требуется:<br>1. Подключиться к порту<br>2. Периодически отсылать посылки байтов<br><br>Что делаю:<br>1. На форму ClientSocket поставил параметры:<br>Address: 192.168.0.20<br>ClientType: ctNonBlocking<br>Port: 102<br>2. На кнопку отсылаю ClientSocket1.Socket.SendText(#00);<br>3. Жду событие onRead<br><br>Что не получается:<br>1. Не происходит события onRead...<br>2. Через несколько посылок Disconnect...<br><br>Аргумент:<br>смотрю пакеты CommView`ом, пакеты видны, как исходящие, так и входящие...<br><br>P.S. делал анологичное приложение, всё работает, но там был другой порт и PLC...]]></description>
        <author>VFaust</author>
        <category>Delphi: Сетевое программирование</category>
      </item>
	
      </channel>
      </rss>
	