Home | History | Annotate | Download | only in logging

Lines Matching refs:socktype

740                  facility=LOG_USER, socktype=None):
746 If facility is not specified, LOG_USER is used. If socktype is
749 socktype of None, in which case socket.SOCK_DGRAM will be used, falling
756 self.socktype = socktype
763 if socktype is None:
764 socktype = socket.SOCK_DGRAM
765 self.socket = socket.socket(socket.AF_INET, socktype)
766 if socktype == socket.SOCK_STREAM:
768 self.socktype = socktype
772 use_socktype = self.socktype
778 # it worked, so set self.socktype to the used type
779 self.socktype = use_socktype
782 if self.socktype is not None:
789 # it worked, so set self.socktype to the used type
790 self.socktype = use_socktype
861 elif self.socktype == socket.SOCK_DGRAM: