• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check SocketConnection availability

 
Pascal Px
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to check the availability of the implementation of the socket connection
without calling the Connector open method:
socket = (StreamConnection)Connector.open("socket"+ "://" + host + ":" + port, Connector.READ_WRITE, true);
and throwing a exception or if i must call the open method, on wich port
and on wich host (127.0.0.1 i presume)
Thanks in advance
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pascal"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pascal, our naming policy states to use your real first and real last name. Please make your changes accordingly. Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic