TCP connection type raw
Posted: Thu Feb 08, 2018 10:56 am
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
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