Example #1
0
        public static AType ConnectNHPP(
            Aplus environment, AType protocol, AType port, AType host, AType name, AType function)
        {
            int portNumber = ExtractInteger(port, "connectNHPP");

            return(environment.GetService <AipcService>().Connect(function, name, host, portNumber, protocol));
        }
Example #2
0
        public static AType ListenNP(Aplus environment, AType protocol, AType name, AType function)
        {
            if (protocol.Type != ATypes.ASymbol || name.Type != ATypes.ASymbol || function.Type != ATypes.AFunc)
            {
                return(AInteger.Create(-1));
            }

            return(environment.GetService <AipcService>().Listen(function, name, protocol));
        }
Example #3
0
        public static AType ListenN(Aplus environment, AType name, AType function)
        {
            if (name.Type != ATypes.ASymbol || function.Type != ATypes.AFunc)
            {
                return AInteger.Create(-1);
            }

            return environment.GetService<AipcService>().Listen(function, name);
        }
Example #4
0
        public static AType ListenNPP(Aplus environment, AType protocol, AType port, AType name, AType function)
        {
            int portNumber = ExtractInteger(port, "i.listenNPP");

            if (protocol.Type != ATypes.ASymbol || name.Type != ATypes.ASymbol || function.Type != ATypes.AFunc)
            {
                return AInteger.Create(-1);
            }

            return environment.GetService<AipcService>().Listen(
                function, name, ConnectionAttribute.DEFAULT_HOST, portNumber, protocol);
        }
Example #5
0
        public static AType ListenNPP(Aplus environment, AType protocol, AType port, AType name, AType function)
        {
            int portNumber = ExtractInteger(port, "i.listenNPP");

            if (protocol.Type != ATypes.ASymbol || name.Type != ATypes.ASymbol || function.Type != ATypes.AFunc)
            {
                return(AInteger.Create(-1));
            }

            return(environment.GetService <AipcService>().Listen(
                       function, name, ConnectionAttribute.DEFAULT_HOST, portNumber, protocol));
        }
Example #6
0
        public static AType GetAttribute(Aplus environment, AType attributeName, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.getattr");

            return(environment.GetService <AipcService>().GetAttribute(handleNumber, attributeName));
        }
Example #7
0
        public static AType Attributes(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.attrs");

            return(environment.GetService <AipcService>().Attributes(handleNumber));
        }
Example #8
0
 public static AType Timeout(Aplus environment, AType argument)
 {
     return(environment.GetService <AipcService>().GetTimeout(argument));
 }
Example #9
0
 public static AType GetAttribute(Aplus environment, AType attributeName, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.getattr");
     return environment.GetService<AipcService>().GetAttribute(handleNumber, attributeName);
 }
Example #10
0
 public static AType WhatIs(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.whatis");
     return environment.GetService<AipcService>().WhatIs(handleNumber);
 }
Example #11
0
        public static AType Destroy(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.destroy");

            return(environment.GetService <AipcService>().Destroy(handleNumber));
        }
Example #12
0
 public static AType Close(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.close");
     return environment.GetService<AipcService>().Close(handleNumber);
 }
Example #13
0
 public static AType WhatIs(Aplus environment)
 {
     return(environment.GetService <AipcService>().Roster());
 }
Example #14
0
 public static AType Open(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.open");
     return environment.GetService<AipcService>().Open(handleNumber);
 }
Example #15
0
 public static AType Destroy(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.destroy");
     return environment.GetService<AipcService>().Destroy(handleNumber);
 }
Example #16
0
 public static AType Send(Aplus environment, AType message, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.send");
     return environment.GetService<AipcService>().Send(handleNumber, message);
 }
Example #17
0
 public static AType SyncRead(Aplus environment, AType timeout, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.syncread");
     return environment.GetService<AipcService>().SyncRead(handleNumber, timeout);
 }
Example #18
0
 public static AType WhatIs(Aplus environment)
 {
     return environment.GetService<AipcService>().Roster();
 }
Example #19
0
        public static AType SetAttribute(Aplus environment, AType value, AType attributeName, AType handle)
        {
            ExtractInteger(handle, "i.setattr");

            return(environment.GetService <AipcService>().SetAttribute(handle.asInteger, attributeName, value));
        }
Example #20
0
        public static AType Send(Aplus environment, AType message, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.send");

            return(environment.GetService <AipcService>().Send(handleNumber, message));
        }
Example #21
0
        public static AType WhatIs(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.whatis");

            return(environment.GetService <AipcService>().WhatIs(handleNumber));
        }
Example #22
0
        public static AType SetAttribute(Aplus environment, AType value, AType attributeName, AType handle)
        {
            ExtractInteger(handle, "i.setattr");

            return environment.GetService<AipcService>().SetAttribute(handle.asInteger, attributeName, value);
        }
Example #23
0
        public static AType SyncRead(Aplus environment, AType timeout, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.syncread");

            return(environment.GetService <AipcService>().SyncRead(handleNumber, timeout));
        }
Example #24
0
 public static AType ConnectNHPP(
     Aplus environment, AType protocol, AType port, AType host, AType name, AType function)
 {
     int portNumber = ExtractInteger(port, "connectNHPP");
     return environment.GetService<AipcService>().Connect(function, name, host, portNumber, protocol);
 }
Example #25
0
        public static AType Open(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.open");

            return(environment.GetService <AipcService>().Open(handleNumber));
        }
Example #26
0
 public static AType Timeout(Aplus environment, AType argument)
 {
     return environment.GetService<AipcService>().GetTimeout(argument);
 }
Example #27
0
        public static AType Close(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.close");

            return(environment.GetService <AipcService>().Close(handleNumber));
        }
Example #28
0
 public static AType ConnectN(Aplus environment, AType name, AType function)
 {
     return(environment.GetService <AipcService>().Connect(function, name));
 }
Example #29
0
 public static AType ConnectN(Aplus environment, AType name, AType function)
 {
     return environment.GetService<AipcService>().Connect(function, name);
 }
Example #30
0
 public static AType Attributes(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.attrs");
     return environment.GetService<AipcService>().Attributes(handleNumber);
 }