0% found this document useful (0 votes)
3 views

CSLib

CS-Lib is a Client/Server Library that facilitates communication between applications using a socket-based protocol, providing data marshalling, logging, and redundancy support. It includes tools for monitoring connection errors and viewing service IP addresses and port numbers, such as AfwServiceMemTblViewer and AfwAppLogViewer. The document outlines operations available for troubleshooting and logging, including managing log flags and flushing logs for effective monitoring.

Uploaded by

rubhernandez
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

CSLib

CS-Lib is a Client/Server Library that facilitates communication between applications using a socket-based protocol, providing data marshalling, logging, and redundancy support. It includes tools for monitoring connection errors and viewing service IP addresses and port numbers, such as AfwServiceMemTblViewer and AfwAppLogViewer. The document outlines operations available for troubleshooting and logging, including managing log flags and flushing logs for effective monitoring.

Uploaded by

rubhernandez
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

1 CS-Lib
Client/Server Library is a support library that helps an application to
communicate with another application over a socket-based protocol. CS-
Lib helps with marshalling of data, log over and redundancy support.

Client Side Server Side

CAfwClient CAfwSocket CAfwSocket CAfwBackend

Figure 1 Basic overview of Client/Server Library


How the Port number is retrieved and propagated to CS-Lib is shown in
Figure 2 below. To find any connection errors, two tools are primarily
utilized namely AfwServiceMemTblViewer.exe and
AfwAppLogViewer.exe (Application Logger Viewer).
Service Manager Service Manager
3) Send, IP # : Port #
Service
1) Sockets, Bind
2) Listen (Gives Port #
from Windows)
4) Send, IP # : Port #
SM Client
SM Client SM Client
SM Client
SM Client
SM Client

5) Write, IP # : Port # Node

Shared Memory
Process
CS-Lib

Client Helper
7) Send, IP # : Port #
Start Connection

6) Read, IP # : Port #

Figure 2 Port number propagation


To view SM Clients view of the service IP address and port number use
the Memory Table Viewer as seen in Figure 3 below. Click the ‘Resolve’
button to replace the GUIDs in the list view to the left with the names of
the services, as done in the figure below.
Figure 3 Port numbers in shared memory
For details on the CS-Lib view of connections and ports there are Applog
operations available that can be invoked from the AfwApplogViewer tool
as can be seen in Figure 4 below. Here the operation ‘Clients’ on the
component ‘ServiceInfo’ has been invoked.
Figure 4 Applog showing CS-Libs view of its clients

Operation Description
Clients Clients connected to the Service; IP and
Port should be the same as in
AfwServiceMemTblViewer
Servers The port that the service is listening to,
first hand information from windows,
AfwServiceMemTblViewer should show
the same
BackEnds The server sides endpoints
GetLogFlags Shows the current log flags settings
SetLogFlags Sets what to be logged in the log file (a
file per process created in the product’s
Log directory); e.g. 129 could be useful
when troubleshooting connection
problems (turns on connection-related
flags).
NOTE: before opening the log file in
notepad, make sure that it has been
flushed first – see the FlushLog
operation!
FlushLog Flushes buffered text to the log file. The
location and name of the log file is
displayed as a help for the user to find it
(e.g. copy the line and paste it in the
Windows Explorer’s address field to
open the file in notepad).
AddressCache All DNS queries done by CS-Lib;
Unresolved => bad
Summary Summary of the CS-Lib statistics;
lots of dead => bad
long response times for DNS or DC
queries (>1000 ms => bad – check the
network infrastructure!)

You might also like