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

How to use
send
method
in
com.jme3.network.MessageConnection

Best Java code snippets using com.jme3.network.MessageConnection.send (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.networkMessageConnectionsend

Javadoc

Sends a message to the other end of the connection using the specified alternate channel.

Popular methods of MessageConnection

    Popular in Java

    • Finding current android device location
    • setRequestProperty (URLConnection)
    • onRequestPermissionsResult (Fragment)
    • onCreateOptionsMenu (Activity)
    • Properties (java.util)
      The Properties class represents a persistent set of properties. The Properties can be saved to a st
    • Stack (java.util)
      The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
    • Annotation (javassist.bytecode.annotation)
      The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
    • DataSource (javax.sql)
      A factory for connections to the physical data source that this DataSource object represents. An alt
    • IsNull (org.hamcrest.core)
      Is the value null?
    • LoggerFactory (org.slf4j)
      The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
    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