2
# -*- coding: utf-8 -*-
4
# pySFML - Python bindings for SFML
5
# Copyright 2012-2013, Jonathan De Wachter <dewachter.jonathan@gmail.com>
7
# This software is released under the LGPLv3 license.
8
# You should have received a copy of the GNU Lesser General Public License
9
# along with this program. If not, see <http://www.gnu.org/licenses/>.
14
# python 2.* compatability
15
try: input = raw_input
16
except NameError: pass
18
# choose a random port for opening sockets (ports < 1024 are reserved)
22
print("Do you want to be a server (s) or a client (c) ?")
26
server.do_server(PORT)
28
client.do_client(PORT)
30
input("Press any key to exit...")