Anil Franklin

– my thoughts

Finally I did a ‘project’

I have been going on enchanting about too many projects ..
Panorama, PCSuite , image2Muzik , Circuit maker , Audio broadcasting , and what not .. I was rocking with projects ..

Finally I could be proud of having something called list of projects ,but what use .. You can have a satisfaction over your code if you can derive that to an applicable field . Finally I got that feel from my midnight oil ..

A ‘video conferencing’ in 50 lines .. Again credit goes to python ..

We made it .. I was alone for the coding part (still it worked)..

A server sends streaming audio and video through two different threads and sockets which is accepted by client code running at the other end of lan .That is the design .

I will upload this whole set of 7 projects we did to chipmonks.co.in/projects in short .
Minimum lines coding revolution by python ..howz the heading ..  😛
For instance this is my audio_client.py

import socket,sys,thread
clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = sys.argv[1]
clientsocket.connect((host, 4445))
clientsocket.send(‘audio’)
if clientsocket.recv(100) != ‘ok’:
sys.exit()
clientsocket.send(‘ok’)
output=open(‘/dev/audio’,’w’)
try:
while 1:
output.write(clientsocket.recvfrom(1000)[0])
except:
thread.exit()
output.close()
clientsocket.close()

August 4, 2008 - Posted by | projects | , ,

1 Comment »

  1. Good article, thank for sharing

    Comment by Matthew Broderick | August 13, 2008 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: