Oct 09
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (XVI)

Qik is a new and innovative service that allows you stream video live from your cell phone to the web. These videos can be shared with your friends and they are available for viewing and download. Qik has a straight relationship with other on-line services, like twitter, Youtube, Facebook and wordpress. In this post an [...]

Author: Marcelo Barros
Jul 17
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (XV)

As discussed in post III, TCP sockets have flow control but they require some extra coding since we can not precisely control the amount of received bytes when using recv(). However, the socket API in Python provides a very useful method called makefile() that transforms a standard socket object in a file like object. [...]

Author: Marcelo Barros
Jun 29
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (XIV)

Have you already heard about Beautiful Soup ? Beautiful Soup is a Python HTML/XML parser with a lot of useful methods to collect data from pages or for navigating, searching, and modifying a parse tree. In this post I will show some usage examples of BeautifulSoup and a link checker application for S60, combining BeautifulSoup [...]

Author: Marcelo Barros
Jun 20
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (XIII)

In our last post we talked about multicast, a special range of IPs used to send messages for a group of machines. In this case, machines that want to receive message in such group must subscribe to it using socket options. However, it is possible to send messages for all machine in the subnet without [...]

Author: Marcelo Barros
Jun 15
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (XII)

Until now we have used only TCP in our examples due to its reliability. In fact, UDP could be used when reliability is not an issue or when you implement it in the application layer. However, UDP is your only solution when talking about multicast and broadcast. In this post we will explore the multicast [...]

Author: Marcelo Barros
Jun 08
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (XI)

We have already talked about IP addressing in the post IV, but at that time we avoided more details about the subject “multicast addressing”. It is time to address this topic again.
IP multicast is a special addressing where it is possible to create one-to-many communications. In this case, the same IP package can reach different [...]

Author: Marcelo Barros
May 30
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (X)

To celebrate our tenth post, I will talk about urllib module and one interesting application using it: how to retrieve blogs statistics from Wordpress accounts.
urllib is a versatile python module for fetching data across the Internet. It has several interesting features, like:

opening URLs with an interface similar to that one found in file operations.
function for [...]

Author: Marcelo Barros
May 22
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (IX)

A new element was presented in our last post: exception handling. It is quite impossible to create a “bulletproof” programs without any kind of exception handling. In special, the PyS60 socket API does an extensive usage of exceptions to indicate errors like connection timeout, unexpected closed connections and so on. When programming, you need to [...]

Author: Marcelo Barros
May 13
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (VIII)

Did you do your homework ? So, I would like present a possible solution for a PyS60 client for sending files to that server we developed in our last post. The client is very similar to the PC solution presented, I just added a PyS60 UI wrapper and a class for selecting files called FileSel [...]

Author: Marcelo Barros
May 06
Digg
Stumbleupon
Technorati
Delicious

Network programming for PyS60 (VII)

Everything is about “protocols” in computer networks, doesn’t it ? In fact they are very important. A protocol is a kind of agreement where rules and roles are definged. They are essential for computer networks, controlling the communication between computer endpoints in all levels (from hardware to applications).
In this post, we will create a simple [...]

Author: Marcelo Barros