public GetFriendConnectionStatus ( int friendNumber ) : ToxConnectionStatus | ||
friendNumber | int | The friend number to retrieve the connection status of. |
리턴 | ToxConnectionStatus |
public ToxConnectionStatus GetFriendConnectionStatus(int friendNumber)
{
var error = ToxErrorFriendQuery.Ok;
return GetFriendConnectionStatus(friendNumber, out error);
}
Tox::GetFriendConnectionStatus ( int friendNumber, ToxErrorFriendQuery &error ) : ToxConnectionStatus |
public void Init() { var options = new ToxOptions(true, true); _tox1 = new Tox(options); _tox2 = new Tox(options); _tox1.AddFriend(_tox2.Id, "hey"); _tox2.AddFriend(_tox1.Id, "hey"); while (_tox1.GetFriendConnectionStatus(0) == ToxConnectionStatus.None) { DoIterate(); } }