LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help using ConnectToTCPServer function for connecting to a printer

Solved!
Go to solution

Hello,

I am attempting to communicate to a printer using the following function:

 

int ConnectToTCPServer (unsigned int *conversationHandle, unsigned int portNumber, char serverHostName[], tcpFuncPtr callbackFunction, void *callbackData, unsigned int timeOut);

 

For the serverHostName, I am using the IP address of the printer. However, I am confused as to what number to put for the port number. How do I obtain this information?

 

Thanks! 

0 Kudos
Message 1 of 3
(2,273 Views)
Solution
Accepted by topic author mjeddi

If the printer has a TCP server, the port to use is normally listed into the printer documentation.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,254 Views)

Thanks I found it! 

0 Kudos
Message 3 of 3
(2,249 Views)