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

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

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

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

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

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