[Tox Support] Some questions as i move forward to my test client

nurupo nurupo at tox.chat
Sun Nov 27 04:53:16 UTC 2016


Hi,

> 1. Lets say i use my tox client i created and i have my toxid created
> inside this client, if someone finds my toxid will he be able to use
> it in another client ?

Tox Ids are, by the most part, public keys of a public key encryption 
keypair.
So no, you can't impersonate someone by just knowing their Tox Id.

> Also if i use at the same time on the same machine and os two tox
> clients will i have 2 different toxIDs or just one ?

Depends on how clients are implemented, i.e. if they share the same tox 
profile.

> I would like to be able to block connections on my client for reasons
> such as duplicated messages if someone uses 2 tox clients at the same
> time and sends messages to a friend that has in both clients with the
> same id for example or send friend request to the one and pops up to
> the other client also.

Running more than one client with the same Tox Id at the same time is 
not supported.
You can do it, but what happens is an undefined behaviour.

> I havent tested cause i cant atm but i would like to know how can i
> use something that will be blocking any outside connection for  the
> user especially commands, requests etc. inside my client which comes
> from another client and not the specific one?

I have no idea what you are saying.
If you want you client to ignore all friend requests but from certain 
Tox Id, then code your client to do just that.

> 2. Is the sended message with "tox_friend_send_message" allready
> encrypted or do i have to encrypt it and then send it from this
> function ?

Messages are sent encrypted. Toxcore handles encryption and decryption 
seamlessly for you.

> 3. I dont know if it is something with the message max size but i have
> increased and it didnt also solved the way messages arrives to uTox
> from my client, when i send from my test client to uTox
> 
> it sometimes not all but sometimes it splits a sentence into lines in
> random way and when i send from uTox to my test client it send the
> full sentence without error, the problem occurs  especially when
> inside the sentence has spaces, if there are no spaces the sentence
> goes full as uTox sends to my client. Do i have to check anything in
> the "tox_friend_send_message" or size of chars or anything in my
> message ?

Clients send messages encoded as UTF-8, so make sure you use UTF-8 
encoding for your messages.
Also, make sure the messages you send don't exceed the maximum length.

---
Regards,
nurupo

On 2016-11-26 00:51, Nocs ... wrote:
> Hello again,
> 
> after i gladly made my tests on toxcore and i am very satisfied and
> well done for your job on all the devs of tox and especially tox core
> which i got my self into it, i would like to know these :
> 
> 1. Lets say i use my tox client i created and i have my toxid created
> inside this client, if someone finds my toxid will he be able to use
> it in another client ?
> 
> Also if i use at the same time on the same machine and os two tox
> clients will i have 2 different toxIDs or just one ?
> 
> I would like to be able to block connections on my client for reasons
> such as duplicated messages if someone uses 2 tox clients at the same
> time and sends messages to a friend that has in both clients with the
> same id for example or send friend request to the one and pops up to
> the other client also.
> 
> I havent tested cause i cant atm but i would like to know how can i
> use something that will be blocking any outside connection for  the
> user especially commands, requests etc. inside my client which comes
> from another client and not the specific one?
> 
> 2. Is the sended message with "tox_friend_send_message" allready
> encrypted or do i have to encrypt it and then send it from this
> function ?
> 
> cause the messages i recieved from utox on my test client was not, i
> just converted the uint8_t *message to string and it was the message
> i`ve sended from uTox to my client
> 
> 3. I dont know if it is something with the message max size but i have
> increased and it didnt also solved the way messages arrives to uTox
> from my client, when i send from my test client to uTox
> 
> it sometimes not all but sometimes it splits a sentence into lines in
> random way and when i send from uTox to my test client it send the
> full sentence without error, the problem occurs  especially when
> inside the sentence has spaces, if there are no spaces the sentence
> goes full as uTox sends to my client. Do i have to check anything in
> the "tox_friend_send_message" or size of chars or anything in my
> message ?
> 
> Thanks for your time first of all and thanks in advance for your
> reponds
> _______________________________________________
> Support mailing list
> Support at lists.tox.chat
> https://lists.tox.chat/listinfo/support



More information about the Support mailing list