File: synfiler.c

package info (click to toggle)
lxtools 1.1-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 164 kB
  • ctags: 169
  • sloc: ansic: 1,539; makefile: 66
file content (39 lines) | stat: -rw-r--r-- 1,279 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* --------------------------------------------------------------------
   Project: HP200LX FILER PROTOCOL (CLIENT) COMMUNICATIONS FOR PAL
   Module:  SYNFILER.C
   Author:  Harry Konstas
   Started: 17. Oct. 95
   Subject: Re-synchronize with filer.
   -------------------------------------------------------------------- */

/* --------------------------------------------------------------------
                             includes
   -------------------------------------------------------------------- */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/* --------------------------------------------------------------------
                           local includes
   -------------------------------------------------------------------- */
#include "pal.h"
#include "palpriv.h"

/* --------------------------------------------------------------------
                          Synchronize with filer
   -------------------------------------------------------------------- */

int  FilerSync(FILERCOM *pFiler)
{

   /* re-synchronize  */
   SendPacket(pFiler, CONNECT_SERVER, 0,0, NULL);
   GetPacket(pFiler);
   SendPacket(pFiler, CONNECT_SERVER, 0,0, NULL);
   GetPacket(pFiler);
   FilerRequest(pFiler, CONNECT_SERVER, 0, NULL);

   return SERVER_ACK;
}