Exemple #1
0
 def sendto(self, data, flags_or_addr, addr=None):
     self._checkClosed()
     if self._sslobj:
         raise ValueError("sendto not allowed on instances of %s" %
                          self.__class__)
     if addr is None:
         return socket.sendto(self, data, flags_or_addr)
     return socket.sendto(self, data, flags_or_addr, addr)
Exemple #2
0
 def sendto(self, data, flags_or_addr, addr=None):
     self._checkClosed()
     if self._sslobj:
         raise ValueError("sendto not allowed on instances of %s" %
                          self.__class__)
     if addr is None:
         return socket.sendto(self, data, flags_or_addr)
     return socket.sendto(self, data, flags_or_addr, addr)
Exemple #3
0
 def sendto(self, *args):
     if self._sslobj:
         raise ValueError("sendto not allowed on instances of %s" %
                          self.__class__)
     return socket.sendto(self, *args)
Exemple #4
0
 def sendto(self, *args):
     if self._sslobj:
         raise ValueError("sendto not allowed on instances of %s" %
                          self.__class__)
     else:
         return socket.sendto(self, *args)