galtack_loadable.py: back to MIT license (thanks Phil)
[galtack.git] / galtack / net_client.py
blobab0be1f8a38d6797ea6a9492a69f429b207e45a8
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """
4 GalTacK networking - client-side protocol implementation.
6 Create a client by copying this example into your program and adding or
7 removing mixin classes as you wish:
9 class GaltackClient(
10 galtack.net.GaltackClientRecvCmdLoggerMixin,
11 galtack.net.GaltackClientHousekeeperMixin,
12 galtack.net.GaltackClientBase,
13 ): pass
15 Do not mix in classes you did not write and do not know completely (like
16 PyGTK classes), as you might encounter namespace clashes sooner than you
17 like. Instead, just instantiate GaltackClient and connect callbacks using
18 GaltackClientBackCallerMixin (included in the example by means of the
19 GaltackClientHousekeeperMixin class).
20 """
21 # Copyright (C) 2007 Felix Rabe <public@felixrabe.textdriven.com>
22 # Copyright (C) 2007 Michael Carter
24 # Permission is hereby granted, free of charge, to any person obtaining a
25 # copy of this software and associated documentation files (the
26 # "Software"), to deal in the Software without restriction, including
27 # without limitation the rights to use, copy, modify, merge, publish,
28 # distribute, sublicense, and/or sell copies of the Software, and to permit
29 # persons to whom the Software is furnished to do so, subject to the
30 # following conditions:
32 # The above copyright notice and this permission notice shall be included
33 # in all copies or substantial portions of the Software.
35 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
36 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
38 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
39 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
40 # OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
41 # THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43 # Recommended line length or text width: 75 characters.
45 from galtack.net_client_base import *
46 from galtack.net_client_logger import *
47 from galtack.net_client_housekeeping import *
48 from galtack.net_client_universe import *