![]() |
|
|||||||||||||||||||||||||||||||||||||||||||||
JCONNECTION's are allocated data structures that must be properly de-allocated; otherwise, there will be memory leaks in your program. Consequently, every successful call to jsOpenConnection() or jsOpenConnectionInt() must have a corresponding call to jsCloseConnection(). If the open call failed, the returned JCONNECTION will be NULL and the close call is not necessary, although it is perfectly safe.
After calling jsCloseConnection(), the JCONNECTION is an invalid pointer and should be set to NULL.
If a call fails, call WSAGetLastError() to get a more specific reason for failure according to Microsoft's documentation.
Functions | |
| JCAM_DLL_API JCONNECTION STDCALL | jsOpenConnection (char const *const host) |
| Opens a connection to the specified host. | |
| JCAM_DLL_API JCONNECTION STDCALL | jsOpenConnectionInt (int const host) |
| Opens a connection to the specified host. | |
| JCAM_DLL_API JCONNECTION STDCALL | jsOpenConnectionBase (char const *const host, UINT32 const cableID) |
| Opens a connection to the specified scanner using Base IP + Cable ID addressing. | |
| JCAM_DLL_API int STDCALL | jsCloseConnection (JCONNECTION const jc) |
Closes a JCONNECTION. | |
|
|
Opens a connection to the specified host.
All successful calls to this function must be closed with a call to
|
|
|
Opens a connection to the specified host.
All successful calls to this function must be closed with a call to
|
|
||||||||||||
|
Opens a connection to the specified scanner using Base IP + Cable ID addressing.
All successful calls to this function must be closed with a call to
|
|
|
Closes a
It is safe to pass in
If a function returns
|