Cpp Socket Class

Hello,

I faced problems with the Socket class for C++: 
https://api.plcnext.help/api_docs_2020-6/classArp_1_1System_1_1Commons_1_1Net_1_1Socket.html

The program is allready unable to use the Bind() function, as it has 'Invalid arguments'.
Example code is also not working at the setup I use, so I doubt the function call is not right.
The setup is:
[list]
[*] Engineer 2021.9
[*] PLCNCLI 2021.6
[*] SDK 2021.9
[*] Firmware 2021.9
[/list]

Does someone experienced this as well? What could be the problem? Maybe someone has a working setup to share?

We did manage to run all the code with the TCP block in Engineer and connect the C++ program with ports. With that library from PxC, the PLCNext has no problems with same configurations.

Thanks in advance,

Arne
Simac QuadCore

Hello Arne,

could you contact me via email and send your source code, please? 
I'll verify your implementation: emuenz@phoenixcontact.com

Thanks & BR
Eduard

Hello Arne,

as discussed in Zendesk Ticket, our C++ socket classes use the "normal" (POSIX) compatible socket implementation of the "glibc" library. The classes are therefore “wrappers” around these standard functions. I'can use the Bind() function in my application and can't reproduce the failure.

BR
Eduard