The N900 runs, in most senses, an ordinary Linux. Using socket, gethostbyname, connect and other standard calls work well.