Mockup: pspnet.py

Line 
1 #pspnet.py
2 """pygame-wrapper to fake pspnet module as found on http://fraca7.free.fr/pspwiki/doku.php?id=pspnet
3 meant merely to allow pypsp games to be made on a computer
4
5 This is under a BSD License, copyright Kousu <kousue@gmail.com> 2006
6
7 This doesn't really work right, for example you will still be able to use sockets even when you're disconnected.
8 There's not much to be done about that.
9
10 """
11
12
13 __author__ = 'Kousu <kousue@gmail.com>'
14 __copyright__ = 'BSD License, 2006'
15
16 from socket import gethostbyname, gethostname
17
18 def connectToAPCTL(n = 1, callback = None):
19         pass
20 def disconnectAPCTL():
21         pass
22 def getIP():
23         return gethostbyname(gethostname())