Giter Club home page Giter Club logo

golibtox's Introduction

golibtox

golibtox is a Go wrapper for the Toxcore library.

UPDATE 2015-07-18

Unfortunately I don't have the time to maintain this package anymore. You can find a well-maintained version here.

Installation

go get github.com/organ/golibtox

License

golibtox is licensed under the GPLv3.

API Functions

  • Documentation for each function will come.
  • Here's a list of the API functions that have been implemented:
tox_add_friend
tox_add_friend_norequest
tox_add_groupchat
tox_bootstrap_from_address
tox_callback_connection_status
tox_callback_file_control
tox_callback_file_data
tox_callback_file_send_request
tox_callback_friend_action
tox_callback_friend_message
tox_callback_friend_request
tox_callback_group_action
tox_callback_group_invite
tox_callback_group_message
tox_callback_group_namelist_change
tox_callback_name_change
tox_callback_read_receipt
tox_callback_status_message
tox_callback_typing_change
tox_callback_user_status
tox_count_chatlist
tox_count_friendlist
tox_del_friend
tox_del_groupchat
tox_do
tox_do_interval
tox_file_data_remaining
tox_file_data_size
tox_file_send_control
tox_file_send_data
tox_friend_exists
tox_get_address
tox_get_chatlist
tox_get_client_id
tox_get_friend_connection_status
tox_get_friend_number
tox_get_friendlist
tox_get_is_typing
tox_get_last_online
tox_get_name
tox_get_name_size
tox_get_nospam
tox_get_num_online_friends
tox_get_self_name
tox_get_self_name_size
tox_get_self_status_message
tox_get_self_status_message_size
tox_get_self_user_status
tox_get_status_message
tox_get_status_message_size
tox_get_user_status
tox_group_action_send
tox_group_message_send
tox_group_number_peers
tox_group_peername
tox_invite_friend
tox_isconnected
tox_join_groupchat
tox_kill
tox_load
tox_new
tox_new_file_sender
tox_save
tox_send_action
tox_send_message
tox_set_name
tox_set_nospam
tox_set_status_message
tox_set_user_is_typing
tox_set_user_status
tox_size

golibtox's People

Contributors

irth avatar nikwen avatar organ avatar tamak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

golibtox's Issues

Unable to build this binary

Sorry for beginners question. But how do i build it?

[vodolaz095@steel vodolaz095]$ cat /etc/issue
Fedora release 20 (Heisenbug)
Kernel \r on an \m (\l)

[vodolaz095@steel vodolaz095]$ go version
go version go1.2.2 linux/amd64

[vodolaz095@steel vodolaz095]$ go get github.com/organ/golibtox
# github.com/organ/golibtox
/home/projects/vodolaz095/go/src/github.com/organ/golibtox/const.go:4:21: fatal error: tox/tox.h: No such file or directory
 #include <tox/tox.h>
                     ^
compilation terminated.

Change to group messaging API in latest toxcore

github.com/organ/golibtox

.gvm/pkgsets/go1.3/global/src/github.com/organ/golibtox/golibtox.go:797: not enough arguments in call to _Cfunc_tox_join_groupchat
.gvm/pkgsets/go1.3/global/src/github.com/organ/golibtox/golibtox.go:816: cannot use C.uint32_t(len(message)) (type C.uint32_t) as type C.uint16_t in argument to _Cfunc_tox_group_message_send
.gvm/pkgsets/go1.3/global/src/github.com/organ/golibtox/golibtox.go:835: cannot use C.uint32_t(len(action)) (type C.uint32_t) as type C.uint16_t in argument to _Cfunc_tox_group_action_send

Error when using golibtox

When I try to compile dual.go example program, I get an error:

38: error: 'Tox_Options' undeclared (first use in this function)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.