org.mobicents.gct
Class InterProcessCommunicator

java.lang.Object
  extended by org.mobicents.gct.InterProcessCommunicator

public class InterProcessCommunicator
extends java.lang.Object

Author:
Oleg Kulikov

Constructor Summary
InterProcessCommunicator(int source, int destination)
          Creates a new instance of InterProcessCommunicator
 
Method Summary
 byte[] receive()
          Receives a datagram from GCT Interprocess.
 void send(byte[] packet)
          Sends datagram to the destination module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterProcessCommunicator

public InterProcessCommunicator(int source,
                                int destination)
Creates a new instance of InterProcessCommunicator

Parameters:
source - the integer identifier of the originated module
destination - the integer idenifier of the destination module.
Method Detail

receive

public byte[] receive()
               throws java.io.IOException
Receives a datagram from GCT Interprocess.

Returns:
received datagram.
Throws:
java.io.IOException

send

public void send(byte[] packet)
          throws java.io.IOException
Sends datagram to the destination module.

Parameters:
packet - the datagram to be sent.
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.