impl localHandshake()