Handheld Terminal
Software
User's Manual, Version: 1.3
85
© KEBA 2007
CKVCConnection*
OnClientConnect
(SOCKET socket, sockaddr_in
&sockAdr);
This method is always called when a teach pendant establishes a connec-
tion to the control. The parameters
socket
and
sockAdr
specify the con-
nection parameters of the teach pendant. This function must return a
pointer to an object of the class
CKVCConnection
. A return value of 0 indi-
cates that the control rejects the logon of the teach pendant.
int
OnClientDisconnect
(CKVCConnection *pConnection,
TDisconInfo info);
This method will be called if the server cannot reach the client any more.
The cause of the logoff is specified in info.
POSITION
ConnectionListHeadPos
();
This method returns the position of the first entry in the OpenConnection
list.
CKVCConnection*
ConnectionListGetNext
(POSITION pos);
This method returns a pointer to the ConnectionObject that is stored on the
postiion pos in the OpenConnection list.
int
ConnectionListGetCount
();
This method returns the number of connections that are stored in the
OpenConnection list.