Class EZSocket

    • Constructor Detail

      • EZSocket

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static EZSocket alloc()
      • allocWithZone

        public static EZSocket 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()
      • close

        public void close()
      • debugDescription_static

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

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

        public int fileDescriptor()
      • 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)
      • name

        @NotNull
        public @NotNull java.lang.String name()
      • new_objc

        public static EZSocket new_objc()
      • receiveData

        @Nullable
        public @Nullable NSData receiveData​(@Nullable
                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
        receiveData: Blocking call that receives one message in the form of raw bytes. (internally calls read() in unistd.h)
      • receiveDataWithTimeoutError

        @Nullable
        public @Nullable NSData receiveDataWithTimeoutError​(double timeout,
                                                            @Nullable
                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        receiveDataWithTimeout:error: Same as receiveData: but uses select to check if data is received within the specified timeout. A timeout value of < 0 is the same as receiveData: which is an indefinite blocking call
      • receiveMessage

        @Nullable
        public @Nullable NSDictionary<?,​?> receiveMessage​(@Nullable
                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
        receiveMessage: Blocking call that receives one deserialized message (internally calls receiveData:)
      • receiveMessageWithTimeoutError

        @Nullable
        public @Nullable NSDictionary<?,​?> receiveMessageWithTimeoutError​(double timeout,
                                                                                @Nullable
                                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        receiveMessageWithTimeout:error: Same as receiveMessage: but uses select to check if message is received within the specified timeout. A timeout value of < 0 is the same as receiveMessage: which is an indefinite blocking call
      • resolveClassMethod

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

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

        public boolean sendDataError​(@NotNull
                                     @NotNull NSData data,
                                     @Nullable
                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
        sendData:error: Sends a message in the form of raw bytes synchronously, without serialization. (internally calls write() in unistd.h) This method can be called from multiple threads.
      • sendMessageError

        public boolean sendMessageError​(@NotNull
                                        @NotNull NSDictionary<?,​?> msg,
                                        @Nullable
                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> err)
        sendMessage:error: Serializes a message and sends synchronously (internally calls sendData:error:) Serializes using the serializer property if set, otherwise uses a default serialization (with NSKeyedArchiver and NSKeyedUnarchiver). This method can be called from multiple threads.
      • setName

        public void setName​(@NotNull
                            @NotNull java.lang.String value)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • socketWithFileDescriptor

        public static EZSocket socketWithFileDescriptor​(int fd)
        will not close fd on dealloc
      • socketWithFileDescriptorCloseOnDealloc

        public static EZSocket socketWithFileDescriptorCloseOnDealloc​(int fd,
                                                                      boolean cod)
      • socketWithURLError

        public static EZSocket socketWithURLError​(@NotNull
                                                  @NotNull NSURL url,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        socketWithURL:error: Opens an active socket connection according to the URL. Currently supported schemes: - tcp://host:port - unix://filepath
      • 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()