Showing posts with label Connection Types in J2ME. Show all posts
Showing posts with label Connection Types in J2ME. Show all posts

Tuesday, 20 September 2011

Connection Types in J2ME


HTTP:
Connector.open(“http://www.mysite.com”);
Sockets:
Connector.open(“socket://localhost:80”);
Datagrams:
Connector.open(“datagram://www.mysite.com:2861”);
Serial Port:
Connector.open(“comm:0;baudrate=2241”);
File:
Connector.open(“file:/textFile.txt”);