<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to set TCPClient() Buffer Size?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8a63d384ad/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8a63d384ad/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8a63d384ad/</id><updated>2021-05-19T11:58:17.660000Z</updated><subtitle>Recent posts to How to set TCPClient() Buffer Size?</subtitle><entry><title>How to set TCPClient() Buffer Size?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8a63d384ad/?limit=25#2a1d" rel="alternate"/><published>2021-05-19T11:58:17.660000Z</published><updated>2021-05-19T11:58:17.660000Z</updated><author><name>kzuidberg</name><uri>https://forge.codesys.com/u/kzuidberg/</uri></author><id>https://forge.codesys.com47d0dc8de9c34102d764879319453c4b6d6ed22e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Sina,&lt;/p&gt;
&lt;p&gt;I also had to check for a possible solution but at another website I found something which might be helpfull in getting your problem solved:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/2533988/how-much-buffer-does-networkstream-and-tcpclient-have" rel="nofollow"&gt;https://stackoverflow.com/questions/2533988/how-much-buffer-does-networkstream-and-tcpclient-have&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I saw in your program you do a single TCPRead. If the complete message isn't received in the hardware buffer yet, you have to repeat it until the NULL characters is received.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to set TCPClient() Buffer Size?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8a63d384ad/?limit=25#856f" rel="alternate"/><published>2021-05-14T19:55:19.361000Z</published><updated>2021-05-14T19:55:19.361000Z</updated><author><name>sinameshksar</name><uri>https://forge.codesys.com/u/sinameshksar/</uri></author><id>https://forge.codesys.comd97e9c0c4af07cf7407eff1f9e3bac7c3b2c5acd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Codesys Community,&lt;/p&gt;
&lt;p&gt;I implemented a simple TCP Client application using the TCPClient() ST function based on Halcon project(attached). It works fine with smaller packets of data but if I try to send messages larger than 56KB it stops working properly. Any idea what it can be?&lt;br/&gt;
To me I need to increase the size of the TCP buffer but not sure how it should be done?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Sina&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>