1 package javax.sip; 2 3 import java.io.IOException; 4 import java.text.ParseException; 5 import javax.sip.header.ContactHeader; 6 7 public interface ListeningPoint extends Cloneable { 8 String TCP = "TCP"; 9 String UDP = "UDP"; 10 String SCTP = "SCTP"; 11 String TLS = "TLS"; 12 int PORT_5060 = 5060; 13 int PORT_5061 = 5061; 14 15 String getIPAddress(); 16 int getPort(); 17 String getTransport(); 18 19 String getSentBy(); 20 void setSentBy(String sentBy) throws ParseException; 21 22 ContactHeader createContactHeader(); 23 24 void sendHeartbeat(String s, int i) throws IOException; 25 } 26 27