Page 1 of 1

TCP connection type raw

Posted: Thu Feb 08, 2018 10:56 am
by IBRAHIMALALI
Good day all ,

I have a question regarding tcp socket, in wincc the function tcpopen doesnt include a parameter to determine the socket type ,as you see below :

"int tcpOpen(string host, unsigned port [, time timeout]);"

Is there a way to use the wincc function as the below c# function which includes the socket type :

" IPAddress LoginIP = IPAddress.Parse("192.168.104.3");
Socket Socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Tcp);
Socket.Connect(LoginIP, 8020); "



Regards and thank you

Re: TCP connection type raw

Posted: Thu Feb 08, 2018 3:41 pm
by mkoller
There is no such option. tcpOpen() always opens a stream socket

Re: TCP connection type raw

Posted: Sat Feb 10, 2018 4:27 pm
by IBRAHIMALALI
But the message server that we are dealing with only accepts tcp socket type raw .
Please do you suggest any method to open channel from wincc , as what we get when using the top open is the access is accepted but no more , meaning no data transactions.

Regards and sorry for the inconvenience

Re: TCP connection type raw

Posted: Mon Feb 12, 2018 10:17 am
by leoknipp
You can maybe implement a C++ extension (loaded in a CTRL manager) or a WinCC OA API manager to open a TCP connection with the options needed.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: TCP connection type raw

Posted: Sun Oct 14, 2018 10:34 am
by Asem Bani Salameh
Good day ,
Is there any other suggestion?
Has anyone here implemented such kind of solution to share with me .

Thank you all

Re: TCP connection type raw

Posted: Mon Oct 22, 2018 2:24 pm
by Gertjan van Schijndel
Besides using the API (or ordering a feature request) there are no other solutions possible.

Since you seem to have C# experience, you could create a C# WinCC OA API manager. If C++ is not a problem you could create a control extension.