Ciao GNOME.Weekly Report 6:GSOC
- From: srishti sethi <srishakatux gmail com>
- To: gnome-soc-list gnome org
- Subject: Ciao GNOME.Weekly Report 6:GSOC
- Date: Tue, 5 Jul 2011 01:27:24 +0530
Originally from my blog :-
Ciao GNOME.Weekly Report 6:GSOC
5th July 2011 : During the sixth week of gsoc I worked on the following :-
- Added Sequence level to Louis Braille Activity :I added a level to Louis Braille Activity at the end of story to let kids re-arrange the sequence.
- Interface of New Activity Lotto Braille :This
activity is a two player network.Computer acts as the master for the
game.The master has control over lotto board & users are given
braille coded tickets.User has to login to channel to get started
with.Next week I'll make it work over the local network.Currently, I am
experimenting out with socket python library and testing out the
scripts.Check out the code here.Code snippet :-
# Adress and port
self.mcast_adress = "227.234.253.9"
self.port = 15922
self.mcast_timer = 0
self.sock = None
# Used to recognize our own network message
self.uuid = uuid.uuid1().hex
try:
# Start the server
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.sock.bind(('', self.port))
mreq = struct.pack('4sl', socket.inet_aton(self.mcast_adress), socket.INADDR_ANY)
self.sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
self.sock.setblocking(0)
self.timer_interval = 10
self.mcast_timer = gobject.timeout_add(self.timer_interval, self.mcast_read)
print self.mcast_timer
except:
gcompris.utils.dialog(_("GCompris ERROR: Failed to initialize the
network interface.You cannot communicate."),None)
- Screenshot
--
Thanks & Regards
Srishti Sethi
http://srishtisethi.blogspot.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]