Creating an ESK File Tutorial

This topic describes how to create an ESK file.

Introduction

An ESK file is a text file that specifies the order of the protocol modules. The socket server loads the protocol modules.

The ESK file has two sections. The first section specifies the name of the new hook. The second section specifies the name of the file. The name of the file must have the extension and cannot have the full path name.

Location of the ESK file

The location of the ESK file is based on the OS version and the kernel architecture. In the Emulator, the ESK file is found in the location winscw\c\private\101F7989\ESock\. On the hardware, the ESK file is found in the location Z:\private\101F7989\ESock\.

Symbian platform supports only EKA2 architecture and 101F7989 specifies the Secure Identifier (SID).

Procedure

  1. Create a new ESK file for every hook that binds the hook to another hook.

  2. To bind the hook to other protocols bindto and bindfrom directives must be used. The bindto directive forward data packets from one hook to other hooks and upper layer protocols. The bindfrom directive receives the data packets from IP6.

ESK file example

The following code is an example of an ESK file:


[yourhook]
protocols= tcp,ip

[ip]
filename=tcpip6.prt
index=1

How to Create an ESK file

The following code is an example to create an ESK file to bind a new hook called myhook:


[sockman]
protocols=myhook,ip6
    
[myhook]
filename=myhook.prt
index=2
bindfrom=ip6