infrared with java
I'm trying to communicate between a nokia 6600 and a linux laptop. I downloaded the java IrDA API's from http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/Java.html I don't know if anyone has played around with these, but if you have it would be great if I could ask you a few questions because I'm having a bit of trouble. If anyone knows of a good way to communicate over infrared on a linux laptop using java then any info you could give would be helpful.
So far I have been able to establish a connection between the phone and the laptop and transfer some data using the API's I downloaded. Symbian uses ports in its infrared socket API, although there are no ports persay in IrDA. These most likely correspond to the LSAP-SELs, but I have not verified this yet. When I do an IAS query on from the phone to the laptop, I get the wrong number back for the service that I am running on the laptop. I can get the correct LSAP-SEL by looking at the /proc/net/irda/irias file and hard code that into the phone, but the problem is every time I restart the service, the LSAP-SEL changes.
Another problem I noticed is that when I send data, it never returns a -1 to indicate that the end of the stream has been reached. So my code just hangs. Supposedly with that java API, you can just connect as normal sockets and a -1 should indicate an end of stream.
Is there no easy way to communicate over infrared using java on a laptop? Any help would be appreciated.

