prueba1.transport
Class TransportService
java.lang.Object
|
+--prueba1.transport.TransportService
- public class TransportService
- extends java.lang.Object
Method Summary |
int |
sendAgent(java.lang.String _dest,
int _port,
Agent _sended)
This method sends to a certain port in a certain machine the object
that is passed to the method as an argument. |
void |
sendMessage(java.lang.String _address,
int _messageType)
This method sends a message to another platform |
void |
sendMessage(java.lang.String _address,
prueba1.transport.aux.PlatformMessage _pmsg)
This method resends a message previously received by the platform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COM_PORT
public static final int COM_PORT
MES_PORT
public static final int MES_PORT
AG_PORT
public static final int AG_PORT
NUMCON
public static final int NUMCON
NUMCON_COM
public static final int NUMCON_COM
dnsServer
public java.lang.String dnsServer
TransportService
public TransportService(Platform _plt)
sendAgent
public int sendAgent(java.lang.String _dest,
int _port,
Agent _sended)
throws java.io.IOException
- This method sends to a certain port in a certain machine the object
that is passed to the method as an argument.
If we need that it's a method object we set it as static
sendMessage
public void sendMessage(java.lang.String _address,
int _messageType)
- This method sends a message to another platform
- Parameters:
_address
- A string that contains the IP address of the platform destination of the
message.
sendMessage
public void sendMessage(java.lang.String _address,
prueba1.transport.aux.PlatformMessage _pmsg)
- This method resends a message previously received by the platform