• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use ssl scokets to communicate to the server

 
Krishna Chaitanya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm communicating with the server using sockets. can anybody tell me is it possible to use ssl against socket connections. I think J2ME has an extension to its socket protocol(not sure).

Thanks
Krishna
 
Mihai Fonoage
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can't you use ssl://host ort directly?


Mihai
 
Mihai Fonoage
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without the smiles

socket = (StreamConnection)Connector.open(ssl://host:port,Connector.READ_WRITE, true);
output = socket.openDataOutputStream();
//write to this stream
input = socket.openDataInputStream();
//read from this tream

Mihai
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic