cancel
Showing results for 
Search instead for 
Did you mean: 

Help using ConnectToTCPServer function for connecting to a printer

SOLVED
mjeddi
Member
Solved!

Help using ConnectToTCPServer function for connecting to a printer

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! 

2 REPLIES 2
RobertoBozzolo
Proven Zealot
Solution

Rif.: Help using ConnectToTCPServer function for connecting to a printer

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?
Highlighted
mjeddi
Member

Rif.: Help using ConnectToTCPServer function for connecting to a printer

Thanks I found it!