ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

winsock2 server application

I'n new on WinSock technology. I need to develop an application that acts as a WinSock server. I have example code in C to develop this server, but I would like to know how to implement it in LabVIEW. Have I got to call all winsock2.dll functions, or is there any simplier way?
Thanks for all.
Esther
0 Kudos
Message 1 of 6
(3,852 Views)
To call functions of a DLL in Labview is very easy.

What problem do you have to make this?

Umberto.

"Esther.Lopez" escribió en el mensaje
news:506500000008000000CAF10000-1079395200000@exchange.ni.com...
> I'n new on WinSock technology. I need to develop an application that
> acts as a WinSock server. I have example code in C to develop this
> server, but I would like to know how to implement it in LabVIEW. Have
> I got to call all winsock2.dll functions, or is there any simplier
> way?
> Thanks for all.
> Esther
0 Kudos
Message 2 of 6
(3,852 Views)
I have never used a function call. I have to use the call library function node, I supose. There is no problem, but perhaps there were a simplier way to use winsokets, as happens with another functionalities in labview (for example the TCP/IP funcions)

Esther
0 Kudos
Message 3 of 6
(3,852 Views)
You should be able to create a server using just the built-in TCP/IP functions. There are a couple of shipping examples of TCP/IP servers and the clients don't care whether the program that's serving the data is LabVIEW, VB, or C++. On a windows platform, the LabVIEW TCP/IP functions do make a call into the winsock dll so use whatever you're comfortable with.
0 Kudos
Message 4 of 6
(3,852 Views)
Do you mean that I don't need to create the server following the process in MSDN web page (Initialize WSA, Create a socket, Bind the socket, Listen on the socket, Accept a connection, Send and receive data and Disconnect)? I just can use the TCP/IP funtions?
Or I have to follow this procedure, but using TCP/IP functions in some cases?
Sorry for so much questions!!
0 Kudos
Message 5 of 6
(3,852 Views)
You can just use TCP Open Connection, TCP Listen, TCP Write, TCP Read, etc.
0 Kudos
Message 6 of 6
(3,852 Views)