• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# AllJoynUnity.AllJoyn类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中AllJoynUnity.AllJoyn的典型用法代码示例。如果您正苦于以下问题:C# AllJoyn类的具体用法?C# AllJoyn怎么用?C# AllJoyn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AllJoyn类属于AllJoynUnity命名空间,在下文中一共展示了AllJoyn类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AcceptSessionJoiner

			protected override bool AcceptSessionJoiner(ushort sessionPort, string joiner, AllJoyn.SessionOpts opts)
			{
				_sessionTest.acceptSessionJoinerFlag = true;
				return true;
			}
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:5,代码来源:SessionTest.cs


示例2: FoundAdvertisedName

 protected override void FoundAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
 {
     _busListenerTest.transportFound |= transport;
     _busListenerTest.foundAdvertisedName = true;
     Notify();
 }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:6,代码来源:BusListenerTest.cs


示例3: LostAdvertisedName

 protected override void LostAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
 {
     _busListenerTest.lostAdvertisedName = true;
     Notify();
 }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:5,代码来源:BusListenerTest.cs


示例4: LostAdvertisedName

 protected override void LostAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
 {
     chatText = "Chat LostAdvertisedName(name=" + name + ", prefix=" + namePrefix + ")\n" + chatText;
     Debug.Log("Chat LostAdvertisedName(name=" + name + ", prefix=" + namePrefix + ")");
     sFoundName.Remove(name);
 }
开发者ID:ADVANTECH-Corp,项目名称:node-alljoyn,代码行数:6,代码来源:BasicChat.cs


示例5: TestBusObject

            public TestBusObject(AllJoyn.BusAttachment bus, string path)
                : base(bus, path, false)
            {
                AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
                AllJoyn.QStatus status = AddInterface(exampleIntf);
                if(!status)
                {
                    chatText = "Chat Failed to add interface " + status.ToString() + "\n" + chatText;
                    Debug.Log("Chat Failed to add interface " + status.ToString());
                }

                chatMember = exampleIntf.GetMember("chat");
            }
开发者ID:ADVANTECH-Corp,项目名称:node-alljoyn,代码行数:13,代码来源:BasicChat.cs


示例6: VerifyCredentials

			protected override bool VerifyCredentials(string authMechanism, string peerName, AllJoyn.Credentials credentials)
			{
				_authListenerTest.authflags.verifyCreds_client = true;
				return true;
			}
开发者ID:peterdocter,项目名称:Coco2dxDemo,代码行数:5,代码来源:AuthListenerTest.cs


示例7: FoundAdvertisedName

 protected override void FoundAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
 {
     chatText = "Chat FoundAdvertisedName(name=" + name + ", prefix=" + namePrefix + ")\n" + chatText;
     Debug.Log("Chat FoundAdvertisedName(name=" + name + ", prefix=" + namePrefix + ")");
     if(string.Compare(myAdvertisedName, name) == 0)
     {
         chatText = "Ignoring my advertisement\n" + chatText;
         Debug.Log("Ignoring my advertisement");
     } else if(string.Compare(SERVICE_NAME, namePrefix) == 0)
     {
         sFoundName.Add(name);
     }
 }
开发者ID:ADVANTECH-Corp,项目名称:node-alljoyn,代码行数:13,代码来源:BasicChat.cs


示例8: ListenerRegistered

 protected override void ListenerRegistered(AllJoyn.BusAttachment busAttachment)
 {
     _concurrentCallbackTest.listenerRegisteredFlag = true;
     Notify();
 }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:5,代码来源:ConcurrentCallbackTest.cs


示例9: SendTestSignal

            public AllJoyn.QStatus SendTestSignal(string destination, uint sessionId,
												AllJoyn.InterfaceDescription.Member member,
												AllJoyn.MsgArg args, ushort timeToLife, byte flags,
												AllJoyn.Message msg)
            {
                return Signal(destination, sessionId, member, args, timeToLife, flags, msg);
            }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:7,代码来源:SignalsTest.cs


示例10: VerifyCredentials

 protected override bool VerifyCredentials(string authMechanism, string peerName, AllJoyn.Credentials credentials)
 {
     _objectSecurityTest.authflags.verifyCreds_service = true;
     return true;
 }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:5,代码来源:ObjectSecurityTest.cs


示例11: FoundAdvertisedName

            protected override void FoundAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
            {
                Debug.Log("Client FoundAdvertisedName(name=" + name + ", prefix=" + namePrefix + ")");
                if(string.Compare(SERVICE_NAME, name) == 0)
                {
                    // We found a remote bus that is advertising basic service's  well-known name so connect to it
                    AllJoyn.SessionOpts opts = new AllJoyn.SessionOpts(AllJoyn.SessionOpts.TrafficType.Messages, false,
                        AllJoyn.SessionOpts.ProximityType.Any, AllJoyn.TransportMask.Any);

                    AllJoyn.QStatus status = sMsgBus.JoinSession(name, SERVICE_PORT, null, out sSessionId, opts);
                    if(status)
                    {
                        Debug.Log("Client JoinSession SUCCESS (Session id=" + sSessionId + ")");
                    }
                    else
                    {
                        Debug.Log("Client JoinSession failed (status=" + status.ToString() + ")");
                    }
                }
                sJoinComplete = true;
            }
开发者ID:GameClay,项目名称:alljoyn_unity,代码行数:21,代码来源:BasicClient.cs


示例12: RequestCredentials

            protected override bool RequestCredentials(string authMechanism, string peerName,
				ushort authCount, string userName, AllJoyn.Credentials.CredentialFlags credMask,
				AllJoyn.Credentials credentials)
            {
                if ((credMask & AllJoyn.Credentials.CredentialFlags.Password) == AllJoyn.Credentials.CredentialFlags.Password)
                {
                    credentials.Password = "ABCDEFGH";
                }
                _objectSecurityTest.authflags.requestCreds_service = true;
                return true;
            }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:11,代码来源:ObjectSecurityTest.cs


示例13: SecurityViolation

 protected override void SecurityViolation(AllJoyn.QStatus status, AllJoyn.Message msg)
 {
     _objectSecurityTest.authflags.securityViolation_client = true;
 }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:4,代码来源:ObjectSecurityTest.cs


示例14: FoundAdvertisedName

			protected override void FoundAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
			{
				if (string.Compare(OBJECT_NAME, name) == 0)
				{
					_sessionTest.foundAdvertisedNameFlag = true;
					EventWaitHandle ewh = new EventWaitHandle(true, EventResetMode.AutoReset, "FoundAdvertisedName");
					ewh.Set();
				}
			}
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:9,代码来源:SessionTest.cs


示例15: SecurityViolation

			protected override void SecurityViolation(AllJoyn.QStatus status, AllJoyn.Message msg)
			{
				_authListenerTest.authflags.securityViolation_service = true;
			}
开发者ID:peterdocter,项目名称:Coco2dxDemo,代码行数:4,代码来源:AuthListenerTest.cs


示例16: AcceptSessionJoiner

 protected override bool AcceptSessionJoiner(ushort sessionPort, string joiner, AllJoyn.SessionOpts opts)
 {
     if (sessionPort != SERVICE_PORT)
     {
         Console.WriteLine("Server Rejecting join attempt on unexpected session port {0}", sessionPort);
         return false;
     }
     Console.WriteLine("Server Accepting join session request from {0} (opts.proximity={1}, opts.traffic={2}, opts.transports={3})",
         joiner, opts.Proximity, opts.Traffic, opts.Transports);
     return true;
 }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:11,代码来源:BasicServer.cs


示例17: RequestCredentials

			protected override bool RequestCredentials(string authMechanism, string peerName,
				ushort authCount, string userName, AllJoyn.Credentials.CredentialFlags credMask,
				AllJoyn.Credentials credentials)
			{
				_authListenerTest.authflags.requestCreds_client = true;
				return false;
			}
开发者ID:peterdocter,项目名称:Coco2dxDemo,代码行数:7,代码来源:AuthListenerTest.cs


示例18: TestBusObject

            public TestBusObject(AllJoyn.BusAttachment bus, string path)
                : base(path, false)
            {
                AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
                AllJoyn.QStatus status = AddInterface(exampleIntf);
                if(!status)
                {
                    Console.WriteLine("Server Failed to add interface {0}", status);
                }

                AllJoyn.InterfaceDescription.Member catMember = exampleIntf.GetMember("cat");
                status = AddMethodHandler(catMember, this.Cat);
                if(!status)
                {
                    Console.WriteLine("Server Failed to add method handler {0}", status);
                }
            }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:17,代码来源:BasicServer.cs


示例19: Cat

            protected void Cat(AllJoyn.InterfaceDescription.Member member, AllJoyn.Message message)
            {
                string outStr = (string)message[0] + (string)message[1];
                AllJoyn.MsgArg outArgs = new AllJoyn.MsgArg();
                outArgs = outStr;

                AllJoyn.QStatus status = MethodReply(message, outArgs);
                if(!status)
                {
                    Console.WriteLine("Server Ping: Error sending reply");
                }
            }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:12,代码来源:BasicServer.cs


示例20: ListenerRegistered

 protected override void ListenerRegistered(AllJoyn.BusAttachment busAttachment)
 {
     chatText = "Chat ListenerRegistered: busAttachment=" + busAttachment + "\n" + chatText;
     Debug.Log("Chat ListenerRegistered: busAttachment=" + busAttachment);
 }
开发者ID:ADVANTECH-Corp,项目名称:node-alljoyn,代码行数:5,代码来源:BasicChat.cs



注:本文中的AllJoynUnity.AllJoyn类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Controllers.CampaignController类代码示例发布时间:2022-05-24
下一篇:
C# AlcionaDAL.DirtyApartments类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap