Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tox.h doesn't expose the size of the nospam. #456

Closed
GrayHatter opened this issue Jan 22, 2017 · 2 comments
Closed

Tox.h doesn't expose the size of the nospam. #456

GrayHatter opened this issue Jan 22, 2017 · 2 comments
Labels
messenger Messenger P2 Medium priority
Milestone

Comments

@GrayHatter
Copy link

No description provided.

@iphydf
Copy link
Member

iphydf commented Jan 23, 2017

In what form should it be exposed? It's a uint32_t, and therefore the size is sizeof(uint32_t).

@iphydf iphydf added the P3 Low priority label Jan 24, 2017
@gjedeer
Copy link

gjedeer commented Jan 25, 2017

There's TOX_PUBLIC_KEY_SIZE and TOX_ADDRESS_SIZE. The latter is defined as

#define TOX_ADDRESS_SIZE               (TOX_PUBLIC_KEY_SIZE + sizeof(uint32_t) + sizeof(uint16_t))

I guess

#define TOX_NOSPAM_SIZE (sizeof(uint32_t))

would do it

@SkyzohKey SkyzohKey added messenger Messenger P2 Medium priority and removed P3 Low priority labels Feb 13, 2017
@SkyzohKey SkyzohKey added this to the v0.1.8 milestone Feb 13, 2017
iphydf added a commit to iphydf/c-toxcore that referenced this issue Mar 26, 2017
iphydf added a commit to iphydf/c-toxcore that referenced this issue Mar 26, 2017
iphydf added a commit to iphydf/c-toxcore that referenced this issue Mar 30, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
messenger Messenger P2 Medium priority
Projects
None yet
Development

No branches or pull requests

4 participants