<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem in SysSockBind</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/</id><updated>2020-02-27T14:10:04.365000Z</updated><subtitle>Recent posts to Problem in SysSockBind</subtitle><entry><title>Problem in SysSockBind</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/?limit=25#e188" rel="alternate"/><published>2020-02-27T14:10:04.365000Z</published><updated>2020-02-27T14:10:04.365000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.come49a1e8d4d66688edf92eca9077442142965f63e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just visited it???&lt;br/&gt;
Try: &lt;a class="" href="ftp://3s1-ftppub:stangste@ftp2.3s-software.com/pub/Examples" rel="nofollow"&gt;ftp://3s1-ftppub:stangste@ftp2.3s-softw ... b/Examples&lt;/a&gt;&lt;br/&gt;
(copy and paste in your webbrowser).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem in SysSockBind</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/?limit=25#ff16" rel="alternate"/><published>2020-02-27T14:10:04.037000Z</published><updated>2020-02-27T14:10:04.037000Z</updated><author><name>hiten.upadhyay</name><uri>https://forge.codesys.com/u/hiten-upadhyay/</uri></author><id>https://forge.codesys.comec0e57cb837f12af2582967b79c5d9d163d948a6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for ur help.&lt;br/&gt;
I tried the ftp link, but it says the link is either down or has beem moved to some other location.&lt;br/&gt;
Can u pls provide me some other info about it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem in SysSockBind</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/?limit=25#7886" rel="alternate"/><published>2020-02-27T14:10:03.059000Z</published><updated>2020-02-27T14:10:03.059000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comd6ce8d5cc3ef880c32cb734018ba833a3adf9a15</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think you should have posted this in the V2.3 section, because you are looking for a .lib example.&lt;br/&gt;
Anyway, a very good example can be found through the website  w &lt;a class="" href="http://www.3s-software.com" rel="nofollow"&gt;www.3s-software.com&lt;/a&gt; w .&lt;br/&gt;
Select the menu Download=&amp;gt;CoDeSys Sample Projects.&lt;br/&gt;
Go to the ftp site and choose: /Projects/CoDeSysV2.3/Communication/TcpIp/&lt;/p&gt;
&lt;p&gt;See the pdf file and example project.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem in SysSockBind</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4efee37f9/?limit=25#bd5d" rel="alternate"/><published>2020-02-27T14:10:02.731000Z</published><updated>2020-02-27T14:10:02.731000Z</updated><author><name>hiten.upadhyay</name><uri>https://forge.codesys.com/u/hiten-upadhyay/</uri></author><id>https://forge.codesys.com9c21722caff17e5034406d6b8e2675f3b977a7fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to implement a TCP/IP application in codesys using the SysLibSocket.lib.&lt;br/&gt;
Here is my piece of code for creating the socket and binding it. But the bind function always return False. Can any one pls help me to find out whats wrong or missing in the code.&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #000080;"&gt;SocketCreateHandle := SysSockCreate(SOCKET_AF_INET, SOCKET_STREAM, 0); &lt;br/&gt;
SocketAddress.sin_family := SOCKET_AF_INET ; &lt;br/&gt;
InetAddr := '201.65.32.177';&lt;br/&gt;
SocketAddress.sin_addr := SysSockInetAddr(InetAddr); &lt;br/&gt;
SocketAddress.sin_port := SysSockHtons(3000); &lt;br/&gt;
bResult := SysSockBind(SocketCreateHandle, ADR(SocketAddress), SIZEOF(SocketAddress)); &lt;br/&gt;
IF bResult THEN &lt;br/&gt;
// here it always returns false&lt;br/&gt;
END_IF &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If anyone has any sample program for implementing TCP/IP server or client in Codesys, pls share with me or any useful link would be highly appreciated.&lt;br/&gt;
Thanks in advance&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>