Package smartcard :: Package pyro :: Package server :: Module RemoteCardConnection
[hide private]
[frames] | no frames]

Source Code for Module smartcard.pyro.server.RemoteCardConnection

 1  """RemoteCardConnection class manages connections to a remote reader 
 2  thru pyro (http://www.xs4all.nl/~irmen/pyro3/). 
 3   
 4  __author__ = "http://www.gemalto.com" 
 5   
 6  Copyright 2001-2011 gemalto 
 7  Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com 
 8   
 9  This file is part of pyscard. 
10   
11  pyscard is free software; you can redistribute it and/or modify 
12  it under the terms of the GNU Lesser General Public License as published by 
13  the Free Software Foundation; either version 2.1 of the License, or 
14  (at your option) any later version. 
15   
16  pyscard is distributed in the hope that it will be useful, 
17  but WITHOUT ANY WARRANTY; without even the implied warranty of 
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
19  GNU Lesser General Public License for more details. 
20   
21  You should have received a copy of the GNU Lesser General Public License 
22  along with pyscard; if not, write to the Free Software 
23  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
24  """ 
25   
26  import Pyro.core 
27  import Pyro.naming 
28   
29  from smartcard.CardConnection import CardConnection 
30  from smartcard.CardConnectionDecorator import CardConnectionDecorator 
31  from smartcard.Exceptions import CardConnectionException, NoCardException 
32  from smartcard.Observer import Observable 
33   
34   
35 -class RemoteCardConnection(CardConnectionDecorator, Pyro.core.ObjBase):
36 """Remote connection class. Handles connection with a card inserted 37 inside a remote PC.""" 38
39 - def __init__(self, cardConnectionComponent):
40 """Construct a new remote card connection. 41 42 connection: the reader connection 43 """ 44 Pyro.core.ObjBase.__init__(self) 45 CardConnectionDecorator.__init__(self, cardConnectionComponent)
46