I’m using the TLib function TOpenServerEx() to connect to a local copy of Express. In the development environment, this is returning the correct CTI server value, but once it’s made runtime I’m getting the following error codes back:
21 if I use a symbolic name for the host
24 if I use the IP address for the host
The runtime image is running on the same machine, although from a different directory.
I can’t find anything on these in the manuals, nor anything useful in the KnowledgeBase. The only clue is in connection.h:
#define C2K_ERR_UNKNOWN_HOST 21 /* hostname not resolved */
#define C2K_ERR_CANT_CREATE_SOCKET 24 /* error in socket(3N) */
Excellent! That has solved my problem entirely. More annoyingly, the call is actually in the original code I wrote but I must have had a brainstorm or something because it’s not in the current version.
By the way, I imagine the development environment (IBM VisualAge for Smalltalk) was opening sockets, which is why it would work there.