Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 7
0
        public static AType Attributes(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.attrs");

            return(environment.GetService <AipcService>().Attributes(handleNumber));
        }
Esempio n. 8
0
 public static AType Timeout(Aplus environment, AType argument)
 {
     return(environment.GetService <AipcService>().GetTimeout(argument));
 }
Esempio n. 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);
 }
Esempio n. 10
0
 public static AType WhatIs(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.whatis");
     return environment.GetService<AipcService>().WhatIs(handleNumber);
 }
Esempio n. 11
0
        public static AType Destroy(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.destroy");

            return(environment.GetService <AipcService>().Destroy(handleNumber));
        }
Esempio n. 12
0
 public static AType Close(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.close");
     return environment.GetService<AipcService>().Close(handleNumber);
 }
Esempio n. 13
0
 public static AType WhatIs(Aplus environment)
 {
     return(environment.GetService <AipcService>().Roster());
 }
Esempio n. 14
0
 public static AType Open(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.open");
     return environment.GetService<AipcService>().Open(handleNumber);
 }
Esempio n. 15
0
 public static AType Destroy(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.destroy");
     return environment.GetService<AipcService>().Destroy(handleNumber);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 18
0
 public static AType WhatIs(Aplus environment)
 {
     return environment.GetService<AipcService>().Roster();
 }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 21
0
        public static AType WhatIs(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.whatis");

            return(environment.GetService <AipcService>().WhatIs(handleNumber));
        }
Esempio n. 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);
        }
Esempio n. 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));
        }
Esempio n. 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);
 }
Esempio n. 25
0
        public static AType Open(Aplus environment, AType handle)
        {
            int handleNumber = ExtractInteger(handle, "i.open");

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

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