Пример #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
Пример #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
Пример #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
Пример #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