Example #1
0
 def local_address(self):
     """Returns the local address as tuple in form of ('ipaddress', port)"""
     if self.local_addr is None:
         self.local_addr = inetsocketaddress_to_tuple(
             self.java_obj.localAddress())
     return self.local_addr
Example #2
0
 def local_address(self):
     """Returns the local address as tuple in form of ('ipaddress', port)"""
     if self.local_addr is None:
         self.local_addr =  inetsocketaddress_to_tuple(self.java_obj.localAddress())
     return self.local_addr
Example #3
0
 def remote_address(self):
     """Returns the remote address as tuple in form of ('ipaddress', port)"""
     if self.remote_addr is None:
         self.remote_addr = inetsocketaddress_to_tuple(
             self.java_obj.remoteAddress())
     return self.remote_addr
Example #4
0
 def remote_address(self):
     """Returns the remote address as tuple in form of ('ipaddress', port)"""
     if self.remote_addr is None:
         self.remote_addr =  inetsocketaddress_to_tuple(self.java_obj.remoteAddress())
     return self.remote_addr