User's Manual

Introduction to a sockets client 277
The parameter set_or_reset can supports the following values: *SET
or *RESET
The parameter group refers to a configured group defined in the
eKERNEL_GROUP table
The parameter alarm_descry refers to a configured alarm description,
defined in the eKERNEL_ALARM table
The parameter remove_after supports the following values: *SENT,
*RESET or *CALC
Refer to the appropriate chapters of this document for more information
on the tables.
Introduction to a sockets client
Refer to the documentation of your development environment for more
information on sockets programming.
The code sample shown in Figure 46 "Sample socket client code" (page
279) describes an introduction for beginner programmers on how to build
a very simple Visual Basic program that contacts the DECT Messenger
eKERNEL module and delivers a message request. Note that the source
code is provided for illustration only, and does not include error recovery.
Creating a basic sockets client using Visual Basic
Procedure 67
Creating a basic sockets client using Visual Basic
Step Action
1 Start Visual Basic, and open a new project of Standard
.EXE type. In the menu, choose Project > Components
and add the Microsoft Winsock Control compone
nt to the project. This component usually refers to
C:\WINNT\system32\MSWINSCK.OCX.
2 Drag a CommandButton control to the form. You can use the
default name Command1.
3 Drag a Winsock control to the form. You can use the default
name Winsock1.
4 Add the code shown in Figure 46 "Sample socket client code"
(page 279) in the Private Sub Command1_Click.
5 Specify the correct IP address (the IP address of the system
where eKERNEL runs) and port number (the configured port for
eAPI, as defined in eKERNEL_TCPCLIENT table).
6 Run the program. If you click the Command1 button, a message
request is sent to eKERNEL.
Nortel Communication Server 1000
DECT Messenger Installation and Commissioning — Book 1
NN43120-301 02.01 4 June 2010
Copyright © 2003-2010 Nortel Networks. All Rights Reserved.
.