[WLANware] Wireless socket programming help

Naman Muley naman.g.muley at gmail.com
Sun Jul 1 13:06:04 CEST 2012


Hi Lolitha!


On Sun, Jul 1, 2012 at 12:08 PM, Lolitha Ratnayake <lolitha88 at gmail.com>wrote:

> Dear all,
> I'm not a GSoC student. I thought to develop wireless filesharing protocol
> like 'Air Drop'. I posted this on GSoC as project proposal. But haven't got
> selected. However I thought to make it happen. I'm on theoretical reading
> for months now. I have already looked at 'MeshApp' and also read about
> 'OSLR' protocol. I also do read about Collision avoidance in wireless. I
> also read about python socket programming 'PyNet'.I also know C but haven't
> done socket programming in C but I can manage it if it is necessary.
>

Great! some background work is always nice. Network programming ain't like
general programming. There are protocols to be followed and for that one
needs to know one's networks.


>
> What I want to do is this. Share the files in a local area network based
> on wireless. Nodes must be auto detected (have and idea of using
> multicasting). I want to reduce header size so want to get rid of Network
> layer in my own protocol stack. I see no point of using IP adressing if I
> don't want to transmit data over other networks. I also want to use
> different channels of wifi and may want to control the signal strength of
> transmitting and receiving.
>
> okay. vov!! calm down. Nothing can happen without an IP address. Which is
exactly why python ain't letting you do it. Each computer in a LAN has an
address. Even if there exists only 1 network in the world, we'll still need
an address to call each computer by. If you're in a multicast group, that
group still has an address. ( class D for ipv4 ).

Simple question: Say we both are in this network of yours. lets say I have
a song that you want. How are you going to contact me if I don't have an IP
address?

also, why do you want to reduce the header size?

using different channels is allowed I think. I haven't seen PyNet.
Transmission power also can be controlled.

But as according to PyNet documentation, I can't do this. I have to use IP
> address in order to bind a socket. Also I cant monitor/change packet
> headers. What python does is just put data into OS buffer.
>
> One might say I should use blue-tooth instead. But I want to do it in wifi
> due to more control in signal strength and wide range of devices and
> applications.
>
> Can you please help me/ guide me on what to do/read ?

Umm.. I haven't done a lot of wireless programming. so sorry can't help you
with this right now. I'm sure zioproto and others are well versed!


> Can I do this?


No. the network layer removing part is freaky. other than that, yes.

I want to code in ease as socket programming. But if needed willing to go
> deeper. I'm making this system for linux at first. Also I want to make this
> under GPL so I don't want to include commercial propriety libraries like
> bonjour.
>
> Thank you in advance.
>
> Yours faithfully,
> --
> *Lolitha Ratnayake
> Department of Statistics and Computer Science
> Faculty of Science
> University of Kelaniya
> *
>
> _______________________________________________
> WLANware mailing list
> WLANware at freifunk.net
> Abonnement abbestellen? -> https://freifunk.net/mailman/listinfo/wlanware
>
> Weitere Infos zu den freifunk.net Mailinglisten und zur An- und Abmeldung
> unter http://freifunk.net/mailinglisten
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.freifunk.net/pipermail/wlanware-freifunk.net/attachments/20120701/b8d45ea9/attachment.html>


More information about the WLANware mailing list