Codota Logo
MessageConnection
Code IndexAdd Codota to your IDE (free)

How to use
MessageConnection
in
com.jme3.network

Best Java code snippets using com.jme3.network.MessageConnection (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

protected void send( byte channel, RpcResponseMessage msg ) {
  if( channel >= 0 ) {
    connection.send(channel, msg);
  } else {
    connection.send(msg);
  }
}
origin: jMonkeyEngine/jmonkeyengine

/**
 *  Performs a remote procedure call with the specified arguments but does
 *  not wait for a response.  The outbound message is sent on the specified channel.
 *  There is no inbound response message. 
 */
public void callAsync( byte channel, short objId, short procId, Object... args ) {
  
  RpcCallMessage msg = new RpcCallMessage(-1, channel, objId, procId, args);
  if( log.isLoggable(Level.FINEST) ) {
    log.log(Level.FINEST, "Sending:{0}  on channel:{1}", new Object[]{msg, channel});
  }        
  connection.send(channel, msg);        
}
 
origin: jMonkeyEngine/jmonkeyengine

source.send(msg);
origin: jMonkeyEngine/jmonkeyengine

/**
 *  Performs a remote procedure call with the specified arguments and waits
 *  for the response.  Both the outbound message and inbound response will
 *  be sent on the specified channel.
 */
public Object callAndWait( byte channel, short objId, short procId, Object... args ) {
  
  RpcCallMessage msg = new RpcCallMessage(sequenceNumber.getAndIncrement(), 
                      channel, objId, procId, args);
  
  // Need to register an object so we can wait for the response.
  // ...before we send it.  Just in case.
  ResponseHolder holder = new ResponseHolder(msg); 
  responses.put(msg.getMessageId(), holder);        
  if( log.isLoggable(Level.FINEST) ) {
    log.log(Level.FINEST, "Sending:{0}  on channel:{1}", new Object[]{msg, channel});
  }
  
  // Prevent non-async messages from being send as UDP
  // because there is a high probabilty that this would block
  // forever waiting for a response.  For async calls it's ok
  // so it doesn't do the check.
  if( channel >= 0 ) {        
    connection.send(channel, msg);
  } else {
    connection.send(msg);
  }
      
  return holder.getResponse();
}
origin: org.jmonkeyengine/jme3-networking

protected void send( byte channel, RpcResponseMessage msg ) {
  if( channel >= 0 ) {
    connection.send(channel, msg);
  } else {
    connection.send(msg);
  }
}
origin: org.jmonkeyengine/jme3-networking

/**
 *  Performs a remote procedure call with the specified arguments but does
 *  not wait for a response.  The outbound message is sent on the specified channel.
 *  There is no inbound response message. 
 */
public void callAsync( byte channel, short objId, short procId, Object... args ) {
  
  RpcCallMessage msg = new RpcCallMessage(-1, channel, objId, procId, args);
  if( log.isLoggable(Level.FINEST) ) {
    log.log(Level.FINEST, "Sending:{0}  on channel:{1}", new Object[]{msg, channel});
  }        
  connection.send(channel, msg);        
}
 
origin: org.jmonkeyengine/jme3-networking

/**
 *  Performs a remote procedure call with the specified arguments and waits
 *  for the response.  Both the outbound message and inbound response will
 *  be sent on the specified channel.
 */
public Object callAndWait( byte channel, short objId, short procId, Object... args ) {
  
  RpcCallMessage msg = new RpcCallMessage(sequenceNumber.getAndIncrement(), 
                      channel, objId, procId, args);
  
  // Need to register an object so we can wait for the response.
  // ...before we send it.  Just in case.
  ResponseHolder holder = new ResponseHolder(msg); 
  responses.put(msg.getMessageId(), holder);        
  if( log.isLoggable(Level.FINEST) ) {
    log.log(Level.FINEST, "Sending:{0}  on channel:{1}", new Object[]{msg, channel});
  }
  
  // Prevent non-async messages from being send as UDP
  // because there is a high probabilty that this would block
  // forever waiting for a response.  For async calls it's ok
  // so it doesn't do the check.
  if( channel >= 0 ) {        
    connection.send(channel, msg);
  } else {
    connection.send(msg);
  }
      
  return holder.getResponse();
}
com.jme3.networkMessageConnection

Javadoc

The source of a received message and the common abstract interface of client->server and server->client objects.

Most used methods

  • send
    Sends a message to the other end of the connection.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now