Home | History | Annotate | Download | only in logging

Lines Matching refs:socktype

798                  facility=LOG_USER, socktype=None):
804 If facility is not specified, LOG_USER is used. If socktype is
807 socktype of None, in which case socket.SOCK_DGRAM will be used, falling
814 self.socktype = socktype
821 if socktype is None:
822 socktype = socket.SOCK_DGRAM
823 self.socket = socket.socket(socket.AF_INET, socktype)
824 if socktype == socket.SOCK_STREAM:
826 self.socktype = socktype
830 use_socktype = self.socktype
836 # it worked, so set self.socktype to the used type
837 self.socktype = use_socktype
840 if self.socktype is not None:
847 # it worked, so set self.socktype to the used type
848 self.socktype = use_socktype
919 elif self.socktype == socket.SOCK_DGRAM: