org.mobicents.media.server.impl.resource.ss7.stream
Class SimpleTCPForwarder
java.lang.Object
org.mobicents.media.server.impl.resource.ss7.stream.SimpleTCPForwarder
- All Implemented Interfaces:
- java.lang.Runnable, SS7Layer4, StreamForwarder
public class SimpleTCPForwarder
- extends java.lang.Object
- implements SS7Layer4, StreamForwarder, java.lang.Runnable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTCPForwarder
public SimpleTCPForwarder()
run
public void run()
- Specified by:
run in interface java.lang.Runnable
send
public void send(byte[] data)
linkDown
public void linkDown()
- Description copied from interface:
SS7Layer4
- Callback method from MTP3 layer, informs upper layers that link is not
operable.
- Specified by:
linkDown in interface SS7Layer4
linkUp
public void linkUp()
- Description copied from interface:
SS7Layer4
- Callback method from lower layers MTP3-. This is called once MTP3
determines that link is stable and is able to send/receive messages
properly. This method should be called only once. Every linkup event.
- Specified by:
linkUp in interface SS7Layer4
receive
public void receive(int service,
int subservice,
byte[] msgBuff)
- Specified by:
receive in interface SS7Layer4
- Parameters:
service - - type, this is generaly content of service part - contains
constant defined for ISUP, SCCP or any othersubservice - - as above, it contains other 4 buts of SIO byte.
getAddress
public java.lang.String getAddress()
- Specified by:
getAddress in interface StreamForwarder
getPort
public int getPort()
- Specified by:
getPort in interface StreamForwarder
setAddress
public void setAddress(java.lang.String address)
throws java.net.UnknownHostException
- Specified by:
setAddress in interface StreamForwarder
- Throws:
java.net.UnknownHostException
setPort
public void setPort(int port)
- Specified by:
setPort in interface StreamForwarder
start
public void start()
throws java.lang.Exception
- Specified by:
start in interface StreamForwarder
- Throws:
java.lang.Exception
stop
public void stop()
- Specified by:
stop in interface StreamForwarder
setLayer3
public void setLayer3(Mtp3 layer3)
- Specified by:
setLayer3 in interface StreamForwarder
setServiceIndicator
public void setServiceIndicator(int i)
- Specified by:
setServiceIndicator in interface StreamForwarder
setSubServiceIndicator
public void setSubServiceIndicator(int i)
- Specified by:
setSubServiceIndicator in interface StreamForwarder
Copyright © 2010. All Rights Reserved.