LPD server and client protocol implemetation