本文整理汇总了C#中AllJoynUnity.AllJoyn类的典型用法代码示例。如果您正苦于以下问题:C# AllJoyn类的具体用法?C# AllJoyn怎么用?C# AllJoyn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AllJoyn类属于AllJoynUnity命名空间,在下文中一共展示了AllJoyn类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AcceptSessionJoiner
protected override bool AcceptSessionJoiner(ushort sessionPort, string joiner, AllJoyn.SessionOpts opts)
{
_sessionTest.acceptSessionJoinerFlag = true;
return true;
}
示例2: FoundAdvertisedName
protected override void FoundAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
{
_busListenerTest.transportFound |= transport;
_busListenerTest.foundAdvertisedName = true;
Notify();
}
示例3: LostAdvertisedName
protected override void LostAdvertisedName(string name, AllJoyn.TransportMask transport, string namePrefix)
{
_busListenerTest.lostAdvertisedName = true;
Notify();
}
示例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);
}
示例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");
}
示例6: VerifyCredentials
protected override bool VerifyCredentials(string authMechanism, string peerName, AllJoyn.Credentials credentials)
{
_authListenerTest.authflags.verifyCreds_client = true;
return true;
}
示例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);
}
}
示例8: ListenerRegistered
protected override void ListenerRegistered(AllJoyn.BusAttachment busAttachment)
{
_concurrentCallbackTest.listenerRegisteredFlag = true;
Notify();
}
示例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);
}
示例10: VerifyCredentials
protected override bool VerifyCredentials(string authMechanism, string peerName, AllJoyn.Credentials credentials)
{
_objectSecurityTest.authflags.verifyCreds_service = true;
return true;
}
示例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;
}
示例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;
}
示例13: SecurityViolation
protected override void SecurityViolation(AllJoyn.QStatus status, AllJoyn.Message msg)
{
_objectSecurityTest.authflags.securityViolation_client = true;
}
示例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();
}
}
示例15: SecurityViolation
protected override void SecurityViolation(AllJoyn.QStatus status, AllJoyn.Message msg)
{
_authListenerTest.authflags.securityViolation_service = true;
}