TCP connection type raw

Find and share HowTos to various installations / configurations!
Search

Post Reply
6 posts • Page 1 of 1
IBRAHIMALALI
Posts: 67
Joined: Thu Oct 05, 2017 5:28 pm

TCP connection type raw

Post 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

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: TCP connection type raw

Post by mkoller »

There is no such option. tcpOpen() always opens a stream socket

IBRAHIMALALI
Posts: 67
Joined: Thu Oct 05, 2017 5:28 pm

Re: TCP connection type raw

Post 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

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: TCP connection type raw

Post 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

Asem Bani Salameh
Posts: 17
Joined: Sun Aug 05, 2018 9:43 am

Re: TCP connection type raw

Post 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

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: TCP connection type raw

Post 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.

Post Reply
6 posts • Page 1 of 1