Mercurial > hg > Applications > TightVNC_orginal
comparison src/main/java/com/glavsoft/rfb/protocol/state/ProtocolState.java @ 52:472a9bcacb21 draft default tip
TightVNC 2.7.1.0
author | you@cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 07 Aug 2013 19:01:17 +0900 |
parents | 4689cc86d6cb |
children |
comparison
equal
deleted
inserted
replaced
0:4689cc86d6cb | 52:472a9bcacb21 |
---|---|
1 // Copyright (C) 2010, 2011 GlavSoft LLC. | 1 // Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 //------------------------------------------------------------------------- | 4 //------------------------------------------------------------------------- |
5 // This file is part of the TightVNC software. Please visit our Web site: | 5 // This file is part of the TightVNC software. Please visit our Web site: |
6 // | 6 // |
22 //------------------------------------------------------------------------- | 22 //------------------------------------------------------------------------- |
23 // | 23 // |
24 | 24 |
25 package com.glavsoft.rfb.protocol.state; | 25 package com.glavsoft.rfb.protocol.state; |
26 | 26 |
27 import java.util.logging.Logger; | 27 import com.glavsoft.exceptions.*; |
28 | |
29 import com.glavsoft.exceptions.AuthenticationFailedException; | |
30 import com.glavsoft.exceptions.FatalException; | |
31 import com.glavsoft.exceptions.TransportException; | |
32 import com.glavsoft.exceptions.UnsupportedProtocolVersionException; | |
33 import com.glavsoft.exceptions.UnsupportedSecurityTypeException; | |
34 import com.glavsoft.rfb.protocol.ProtocolContext; | 28 import com.glavsoft.rfb.protocol.ProtocolContext; |
35 import com.glavsoft.transport.Reader; | 29 import com.glavsoft.transport.Reader; |
36 import com.glavsoft.transport.Writer; | 30 import com.glavsoft.transport.Writer; |
37 | 31 |
38 abstract public class ProtocolState { | 32 abstract public class ProtocolState { |
39 protected ProtocolContext context; | 33 protected ProtocolContext context; |
40 protected Logger logger; | |
41 protected Reader reader; | 34 protected Reader reader; |
42 protected Writer writer; | 35 protected Writer writer; |
43 | 36 |
44 public ProtocolState(ProtocolContext context) { | 37 public ProtocolState(ProtocolContext context) { |
45 this.context = context; | 38 this.context = context; |
46 this.logger = context.getLogger(); | |
47 this.reader = context.getReader(); | 39 this.reader = context.getReader(); |
48 this.writer = context.getWriter(); | 40 this.writer = context.getWriter(); |
49 } | 41 } |
50 | 42 |
51 /** | 43 /** |