Class EZSocketServer

  • All Implemented Interfaces:
    NSObject

    public class EZSocketServer
    extends NSObject
    • Constructor Detail

      • EZSocketServer

        protected EZSocketServer​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accept

        @Nullable
        public @Nullable EZSocket accept​(@Nullable
                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        accept: This is a blocking call on accept() to accept one connection. Cannot be used if listenForConnections: has been called already.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static EZSocketServer allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • listenForConnections

        public boolean listenForConnections​(@Nullable
                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
        listenForConnections: Opens a passive socket and detaches a thread to accept connections (unless EZSocketServerAcceptUndetached is set). This is a blocking call if EZSocketServerAcceptUndetached is set.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • serverWithURLDelegateError

        public static EZSocketServer serverWithURLDelegateError​(@NotNull
                                                                @NotNull NSURL url,
                                                                @NotNull
                                                                @NotNull EZSocketServerDelegate delegate,
                                                                @Nullable
                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
        Currently supported schemes: - tcp://host:port (Note: For passive TCP sockets, the host in the URL is ignored) - unix://filepath
      • serverWithURLDelegateOptionsError

        public static EZSocketServer serverWithURLDelegateOptionsError​(@NotNull
                                                                       @NotNull NSURL url,
                                                                       @NotNull
                                                                       @NotNull EZSocketServerDelegate delegate,
                                                                       long options,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • shutdown

        public void shutdown()
        Shuts down the accept loop
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • url

        @NotNull
        public @NotNull NSURL url()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()