예제 #1
0
파일: _ssl3.py 프로젝트: bombela/gevent
 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__)
     elif addr is None:
         return socket.sendto(self, data, flags_or_addr)
     else:
         return socket.sendto(self, data, flags_or_addr, addr)
예제 #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)
예제 #3
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)
예제 #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)