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

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

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

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

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

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