Versions in this module Expand all Collapse all v0 v0.2.17 Feb 23, 2022 Changes in this version + const ERR_CONFERENCE_BY_ID_NOT_FOUND + const ERR_CONFERENCE_BY_ID_NULL + const ERR_CONFERENCE_BY_ID_OK + const ERR_CONFERENCE_BY_UID_NOT_FOUND + const ERR_CONFERENCE_BY_UID_NULL + const ERR_CONFERENCE_BY_UID_OK + const ERR_CONFERENCE_INVITE_NO_CONNECTION type Tox + Killed bool + func (this *Tox) SelfGetDhtId() string + func (this *Tox) SelfGetUdpPort() (uint16, error) v0.2.0 Feb 28, 2018 Changes in this version + const ADDRESS_SIZE + const CONFERENCE_TYPE_AV + const CONFERENCE_TYPE_TEXT + const CONNECTION_NONE + const CONNECTION_TCP + const CONNECTION_UDP + const ERR_BOOTSTRAP_BAD_HOST + const ERR_BOOTSTRAP_BAD_PORT + const ERR_BOOTSTRAP_NULL + const ERR_BOOTSTRAP_OK + const ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND + const ERR_CONFERENCE_DELETE_OK + const ERR_CONFERENCE_GET_TYPE_CONFERENCE_NOT_FOUND + const ERR_CONFERENCE_GET_TYPE_OK + const ERR_CONFERENCE_INVITE_CONFERENCE_NOT_FOUND + const ERR_CONFERENCE_INVITE_FAIL_SEND + const ERR_CONFERENCE_INVITE_OK + const ERR_CONFERENCE_JOIN_DUPLICATE + const ERR_CONFERENCE_JOIN_FAIL_SEND + const ERR_CONFERENCE_JOIN_FRIEND_NOT_FOUND + const ERR_CONFERENCE_JOIN_INIT_FAIL + const ERR_CONFERENCE_JOIN_INVALID_LENGTH + const ERR_CONFERENCE_JOIN_OK + const ERR_CONFERENCE_JOIN_WRONG_TYPE + const ERR_CONFERENCE_NEW_INIT + const ERR_CONFERENCE_NEW_OK + const ERR_CONFERENCE_PEER_QUERY_CONFERENCE_NOT_FOUND + const ERR_CONFERENCE_PEER_QUERY_NO_CONNECTION + const ERR_CONFERENCE_PEER_QUERY_OK + const ERR_CONFERENCE_PEER_QUERY_PEER_NOT_FOUND + const ERR_CONFERENCE_SEND_MESSAGE_CONFERENCE_NOT_FOUND + const ERR_CONFERENCE_SEND_MESSAGE_FAIL_SEND + const ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION + const ERR_CONFERENCE_SEND_MESSAGE_OK + const ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG + const ERR_CONFERENCE_TITLE_CONFERENCE_NOT_FOUND + const ERR_CONFERENCE_TITLE_FAIL_SEND + const ERR_CONFERENCE_TITLE_INVALID_LENGTH + const ERR_CONFERENCE_TITLE_OK + const ERR_FILE_CONTROL_ALREADY_PAUSED + const ERR_FILE_CONTROL_DENIED + const ERR_FILE_CONTROL_FRIEND_NOT_CONNECTED + const ERR_FILE_CONTROL_FRIEND_NOT_FOUND + const ERR_FILE_CONTROL_NOT_FOUND + const ERR_FILE_CONTROL_NOT_PAUSED + const ERR_FILE_CONTROL_OK + const ERR_FILE_CONTROL_SENDQ + const ERR_FILE_GET_FRIEND_NOT_FOUND + const ERR_FILE_GET_NOT_FOUND + const ERR_FILE_GET_NULL + const ERR_FILE_GET_OK + const ERR_FILE_SEEK_DENIED + const ERR_FILE_SEEK_FRIEND_NOT_CONNECTED + const ERR_FILE_SEEK_FRIEND_NOT_FOUND + const ERR_FILE_SEEK_INVALID_POSITION + const ERR_FILE_SEEK_NOT_FOUND + const ERR_FILE_SEEK_OK + const ERR_FILE_SEEK_SENDQ + const ERR_FILE_SEND_CHUNK_FRIEND_NOT_CONNECTED + const ERR_FILE_SEND_CHUNK_FRIEND_NOT_FOUND + const ERR_FILE_SEND_CHUNK_INVALID_LENGTH + const ERR_FILE_SEND_CHUNK_NOT_FOUND + const ERR_FILE_SEND_CHUNK_NOT_TRANSFERRING + const ERR_FILE_SEND_CHUNK_NULL + const ERR_FILE_SEND_CHUNK_OK + const ERR_FILE_SEND_CHUNK_SENDQ + const ERR_FILE_SEND_CHUNK_WRONG_POSITION + const ERR_FILE_SEND_FRIEND_NOT_CONNECTED + const ERR_FILE_SEND_FRIEND_NOT_FOUND + const ERR_FILE_SEND_NAME_TOO_LONG + const ERR_FILE_SEND_NULL + const ERR_FILE_SEND_OK + const ERR_FILE_SEND_TOO_MANY + const ERR_FRIEND_ADD_ALREADY_SENT + const ERR_FRIEND_ADD_BAD_CHECKSUM + const ERR_FRIEND_ADD_MALLOC + const ERR_FRIEND_ADD_NO_MESSAGE + const ERR_FRIEND_ADD_NULL + const ERR_FRIEND_ADD_OK + const ERR_FRIEND_ADD_OWN_KEY + const ERR_FRIEND_ADD_SET_NEW_NOSPAM + const ERR_FRIEND_ADD_TOO_LONG + const ERR_FRIEND_BY_PUBLIC_KEY_NOT_FOUND + const ERR_FRIEND_BY_PUBLIC_KEY_NULL + const ERR_FRIEND_BY_PUBLIC_KEY_OK + const ERR_FRIEND_CUSTOM_PACKET_EMPTY + const ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_CONNECTED + const ERR_FRIEND_CUSTOM_PACKET_FRIEND_NOT_FOUND + const ERR_FRIEND_CUSTOM_PACKET_INVALID + const ERR_FRIEND_CUSTOM_PACKET_NULL + const ERR_FRIEND_CUSTOM_PACKET_OK + const ERR_FRIEND_CUSTOM_PACKET_SENDQ + const ERR_FRIEND_CUSTOM_PACKET_TOO_LONG + const ERR_FRIEND_DELETE_FRIEND_NOT_FOUND + const ERR_FRIEND_DELETE_OK + const ERR_FRIEND_GET_LAST_ONLINE_FRIEND_NOT_FOUND + const ERR_FRIEND_GET_LAST_ONLINE_OK + const ERR_FRIEND_GET_PUBLIC_KEY_FRIEND_NOT_FOUND + const ERR_FRIEND_GET_PUBLIC_KEY_OK + const ERR_FRIEND_QUERY_FRIEND_NOT_FOUND + const ERR_FRIEND_QUERY_NULL + const ERR_FRIEND_QUERY_OK + const ERR_FRIEND_SEND_MESSAGE_EMPTY + const ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_CONNECTED + const ERR_FRIEND_SEND_MESSAGE_FRIEND_NOT_FOUND + const ERR_FRIEND_SEND_MESSAGE_NULL + const ERR_FRIEND_SEND_MESSAGE_OK + const ERR_FRIEND_SEND_MESSAGE_SENDQ + const ERR_FRIEND_SEND_MESSAGE_TOO_LONG + const ERR_GET_PORT_NOT_BOUND + const ERR_GET_PORT_OK + const ERR_NEW_LOAD_BAD_FORMAT + const ERR_NEW_LOAD_ENCRYPTED + const ERR_NEW_MALLOC + const ERR_NEW_NULL + const ERR_NEW_OK + const ERR_NEW_PORT_ALLOC + const ERR_NEW_PROXY_BAD_HOST + const ERR_NEW_PROXY_BAD_PORT + const ERR_NEW_PROXY_BAD_TYPE + const ERR_NEW_PROXY_NOT_FOUND + const ERR_OPTIONS_NEW_MALLOC + const ERR_OPTIONS_NEW_OK + const ERR_SET_INFO_NULL + const ERR_SET_INFO_OK + const ERR_SET_INFO_TOO_LONG + const ERR_SET_TYPING_FRIEND_NOT_FOUND + const ERR_SET_TYPING_OK + const FILE_CONTROL_CANCEL + const FILE_CONTROL_PAUSE + const FILE_CONTROL_RESUME + const FILE_ID_LENGTH + const FILE_KIND_AVATAR + const FILE_KIND_DATA + const FRIEND_CALL_STATE_ACCEPTING_A + const FRIEND_CALL_STATE_ACCEPTING_V + const FRIEND_CALL_STATE_ERROR + const FRIEND_CALL_STATE_FINISHED + const FRIEND_CALL_STATE_SENDING_A + const FRIEND_CALL_STATE_SENDING_V + const HASH_LENGTH + const LOG_LEVEL_DEBUG + const LOG_LEVEL_ERROR + const LOG_LEVEL_INFO + const LOG_LEVEL_TRACE + const LOG_LEVEL_WARNING + const MAX_CUSTOM_PACKET_SIZE + const MAX_FILENAME_LENGTH + const MAX_FRIEND_REQUEST_LENGTH + const MAX_MESSAGE_LENGTH + const MAX_NAME_LENGTH + const MAX_STATUS_MESSAGE_LENGTH + const MESSAGE_TYPE_ACTION + const MESSAGE_TYPE_NORMAL + const PASS_ENCRYPTION_EXTRA_LENGTH + const PASS_KEY_LENGTH + const PROXY_TYPE_HTTP + const PROXY_TYPE_NONE + const PROXY_TYPE_SOCKS5 + const PUBLIC_KEY_SIZE + const SAVEDATA_TYPE_NONE + const SAVEDATA_TYPE_SECRET_KEY + const SAVEDATA_TYPE_TOX_SAVE + const SECRET_KEY_SIZE + const USER_STATUS_AWAY + const USER_STATUS_BUSY + const USER_STATUS_NONE + func ConnStatusString(status int) (s string) + func FileExist(fname string) bool + func GetSalt(ciphertext []byte) (bool, error, []byte) + func IsDataEncrypted(data []byte) bool + func KeepPkg() + func LoadSavedata(fname string) ([]byte, error) + func PassDecrypt(ciphertext []byte, passphrase []byte) (plaintext []byte, err error) + func PassEncrypt(plaintext []byte, passphrase []byte) (ciphertext []byte, err error) + func SetDebug(debug bool) + func SetLogLevel(level int) + type BootNode struct + Addr string + Port int + Pubkey string + type CallControlType int + type ConnectionType int + type FileControlType int + type FileKind uint32 + type GroupchatType int + type MessageType int + type Tox struct + func NewTox(opt *ToxOptions) *Tox + func (this *Tox) AddAVGroupChat() int + func (this *Tox) AddGroupChat() (int, error) + func (this *Tox) AddTcpRelay(addr string, port uint16, pubkey string) (bool, error) + func (this *Tox) Bootstrap(addr string, port uint16, pubkey string) (bool, error) + func (this *Tox) CallbackConferenceAction(cbfn cb_conference_action_ftype, userData interface{}) + func (this *Tox) CallbackConferenceActionAdd(cbfn cb_conference_action_ftype, userData interface{}) + func (this *Tox) CallbackConferenceInvite(cbfn cb_conference_invite_ftype, userData interface{}) + func (this *Tox) CallbackConferenceInviteAdd(cbfn cb_conference_invite_ftype, userData interface{}) + func (this *Tox) CallbackConferenceMessage(cbfn cb_conference_message_ftype, userData interface{}) + func (this *Tox) CallbackConferenceMessageAdd(cbfn cb_conference_message_ftype, userData interface{}) + func (this *Tox) CallbackConferencePeerListChanged(cbfn cb_conference_peer_list_changed_ftype, userData interface{}) + func (this *Tox) CallbackConferencePeerListChangedAdd(cbfn cb_conference_peer_list_changed_ftype, userData interface{}) + func (this *Tox) CallbackConferencePeerName(cbfn cb_conference_peer_name_ftype, userData interface{}) + func (this *Tox) CallbackConferencePeerNameAdd(cbfn cb_conference_peer_name_ftype, userData interface{}) + func (this *Tox) CallbackConferenceTitle(cbfn cb_conference_title_ftype, userData interface{}) + func (this *Tox) CallbackConferenceTitleAdd(cbfn cb_conference_title_ftype, userData interface{}) + func (this *Tox) CallbackFileChunkRequest(cbfn cb_file_chunk_request_ftype, userData interface{}) + func (this *Tox) CallbackFileChunkRequestAdd(cbfn cb_file_chunk_request_ftype, userData interface{}) + func (this *Tox) CallbackFileRecv(cbfn cb_file_recv_ftype, userData interface{}) + func (this *Tox) CallbackFileRecvAdd(cbfn cb_file_recv_ftype, userData interface{}) + func (this *Tox) CallbackFileRecvChunk(cbfn cb_file_recv_chunk_ftype, userData interface{}) + func (this *Tox) CallbackFileRecvChunkAdd(cbfn cb_file_recv_chunk_ftype, userData interface{}) + func (this *Tox) CallbackFileRecvControl(cbfn cb_file_recv_control_ftype, userData interface{}) + func (this *Tox) CallbackFileRecvControlAdd(cbfn cb_file_recv_control_ftype, userData interface{}) + func (this *Tox) CallbackFriendConnectionStatus(cbfn cb_friend_connection_status_ftype, userData interface{}) + func (this *Tox) CallbackFriendConnectionStatusAdd(cbfn cb_friend_connection_status_ftype, userData interface{}) + func (this *Tox) CallbackFriendLosslessPacket(cbfn cb_friend_lossless_packet_ftype, userData interface{}) + func (this *Tox) CallbackFriendLosslessPacketAdd(cbfn cb_friend_lossless_packet_ftype, userData interface{}) + func (this *Tox) CallbackFriendLossyPacket(cbfn cb_friend_lossy_packet_ftype, userData interface{}) + func (this *Tox) CallbackFriendLossyPacketAdd(cbfn cb_friend_lossy_packet_ftype, userData interface{}) + func (this *Tox) CallbackFriendMessage(cbfn cb_friend_message_ftype, userData interface{}) + func (this *Tox) CallbackFriendMessageAdd(cbfn cb_friend_message_ftype, userData interface{}) + func (this *Tox) CallbackFriendName(cbfn cb_friend_name_ftype, userData interface{}) + func (this *Tox) CallbackFriendNameAdd(cbfn cb_friend_name_ftype, userData interface{}) + func (this *Tox) CallbackFriendReadReceipt(cbfn cb_friend_read_receipt_ftype, userData interface{}) + func (this *Tox) CallbackFriendReadReceiptAdd(cbfn cb_friend_read_receipt_ftype, userData interface{}) + func (this *Tox) CallbackFriendRequest(cbfn cb_friend_request_ftype, userData interface{}) + func (this *Tox) CallbackFriendRequestAdd(cbfn cb_friend_request_ftype, userData interface{}) + func (this *Tox) CallbackFriendStatus(cbfn cb_friend_status_ftype, userData interface{}) + func (this *Tox) CallbackFriendStatusAdd(cbfn cb_friend_status_ftype, userData interface{}) + func (this *Tox) CallbackFriendStatusMessage(cbfn cb_friend_status_message_ftype, userData interface{}) + func (this *Tox) CallbackFriendStatusMessageAdd(cbfn cb_friend_status_message_ftype, userData interface{}) + func (this *Tox) CallbackFriendTyping(cbfn cb_friend_typing_ftype, userData interface{}) + func (this *Tox) CallbackFriendTypingAdd(cbfn cb_friend_typing_ftype, userData interface{}) + func (this *Tox) CallbackGroupAction(cbfn cb_group_action_ftype, userData interface{}) + func (this *Tox) CallbackGroupActionAdd(cbfn cb_group_action_ftype, userData interface{}) + func (this *Tox) CallbackGroupInvite(cbfn cb_group_invite_ftype, userData interface{}) + func (this *Tox) CallbackGroupInviteAdd(cbfn cb_group_invite_ftype, userData interface{}) + func (this *Tox) CallbackGroupMessage(cbfn cb_group_message_ftype, userData interface{}) + func (this *Tox) CallbackGroupMessageAdd(cbfn cb_group_message_ftype, userData interface{}) + func (this *Tox) CallbackGroupTitle(cbfn cb_group_title_ftype, userData interface{}) + func (this *Tox) CallbackGroupTitleAdd(cbfn cb_group_title_ftype, userData interface{}) + func (this *Tox) CallbackSelfConnectionStatus(cbfn cb_self_connection_status_ftype, userData interface{}) + func (this *Tox) CallbackSelfConnectionStatusAdd(cbfn cb_self_connection_status_ftype, userData interface{}) + func (this *Tox) ConferenceDelete(groupNumber uint32) (int, error) + func (this *Tox) ConferenceGetChatlist() []uint32 + func (this *Tox) ConferenceGetChatlistSize() uint32 + func (this *Tox) ConferenceGetIdentifier(groupNumber uint32) (string, error) + func (this *Tox) ConferenceGetNames(groupNumber uint32) []string + func (this *Tox) ConferenceGetPeerPubkeys(groupNumber uint32) []string + func (this *Tox) ConferenceGetPeers(groupNumber uint32) map[uint32]string + func (this *Tox) ConferenceGetPubkey(groupNumber uint32) (string, error) + func (this *Tox) ConferenceGetTitle(groupNumber uint32) (string, error) + func (this *Tox) ConferenceGetType(groupNumber uint32) (int, error) + func (this *Tox) ConferenceInvite(friendNumber uint32, groupNumber uint32) (int, error) + func (this *Tox) ConferenceJoin(friendNumber uint32, cookie string) (uint32, error) + func (this *Tox) ConferenceNew() (uint32, error) + func (this *Tox) ConferencePeerCount(groupNumber uint32) uint32 + func (this *Tox) ConferencePeerGetName(groupNumber uint32, peerNumber uint32) (string, error) + func (this *Tox) ConferencePeerGetPublicKey(groupNumber uint32, peerNumber uint32) (string, error) + func (this *Tox) ConferencePeerNumberIsOurs(groupNumber uint32, peerNumber uint32) bool + func (this *Tox) ConferenceSendMessage(groupNumber uint32, mtype int, message string) (int, error) + func (this *Tox) ConferenceSetTitle(groupNumber uint32, title string) (int, error) + func (this *Tox) CountChatList() uint32 + func (this *Tox) DelGroupChat(groupNumber int) (int, error) + func (this *Tox) FileControl(friendNumber uint32, fileNumber uint32, control int) (bool, error) + func (this *Tox) FileGetFileId(friendNumber uint32, fileNumber uint32) (string, error) + func (this *Tox) FileSeek(friendNumber uint32, fileNumber uint32, position uint64) (bool, error) + func (this *Tox) FileSend(friendNumber uint32, kind uint32, fileSize uint64, fileId string, ...) (uint32, error) + func (this *Tox) FileSendChunk(friendNumber uint32, fileNumber uint32, position uint64, data []byte) (bool, error) + func (this *Tox) FriendAdd(friendId string, message string) (uint32, error) + func (this *Tox) FriendAddNorequest(friendId string) (uint32, error) + func (this *Tox) FriendByPublicKey(pubkey string) (uint32, error) + func (this *Tox) FriendDelete(friendNumber uint32) (bool, error) + func (this *Tox) FriendExists(friendNumber uint32) bool + func (this *Tox) FriendGetConnectionStatus(friendNumber uint32) (int, error) + func (this *Tox) FriendGetLastOnline(friendNumber uint32) (uint64, error) + func (this *Tox) FriendGetName(friendNumber uint32) (string, error) + func (this *Tox) FriendGetNameSize(friendNumber uint32) (int, error) + func (this *Tox) FriendGetPublicKey(friendNumber uint32) (string, error) + func (this *Tox) FriendGetStatus(friendNumber uint32) (int, error) + func (this *Tox) FriendGetStatusMessage(friendNumber uint32) (string, error) + func (this *Tox) FriendGetStatusMessageSize(friendNumber uint32) (int, error) + func (this *Tox) FriendGetTyping(friendNumber uint32) (bool, error) + func (this *Tox) FriendSendAction(friendNumber uint32, action string) (uint32, error) + func (this *Tox) FriendSendLosslessPacket(friendNumber uint32, data string) error + func (this *Tox) FriendSendLossyPacket(friendNumber uint32, data string) error + func (this *Tox) FriendSendMessage(friendNumber uint32, message string) (uint32, error) + func (this *Tox) GetChatList() []int32 + func (this *Tox) GetSavedata() []byte + func (this *Tox) GetSavedataSize() int32 + func (this *Tox) GroupActionSend(groupNumber int, action string) (int, error) + func (this *Tox) GroupGetNames(groupNumber int) []string + func (this *Tox) GroupGetPeerPubkeys(groupNumber int) []string + func (this *Tox) GroupGetPeers(groupNumber int) map[int]string + func (this *Tox) GroupGetTitle(groupNumber int) (string, error) + func (this *Tox) GroupGetType(groupNumber uint32) (int, error) + func (this *Tox) GroupMessageSend(groupNumber int, message string) (int, error) + func (this *Tox) GroupNumberPeers(groupNumber int) int + func (this *Tox) GroupPeerName(groupNumber int, peerNumber int) (string, error) + func (this *Tox) GroupPeerNumberIsOurs(groupNumber int, peerNumber uint32) bool + func (this *Tox) GroupPeerPubkey(groupNumber int, peerNumber int) (string, error) + func (this *Tox) GroupSetTitle(groupNumber int, title string) (int, error) + func (this *Tox) Hash(data string, datalen uint32) (string, bool, error) + func (this *Tox) HookConferenceDelete(fn func(groupNumber uint32)) + func (this *Tox) HookConferenceJoin(fn func(friendNumber uint32, groupNumber uint32, cookie string)) + func (this *Tox) HookConferenceNew(fn func(groupNumber uint32)) + func (this *Tox) HookConferenceSetTitle(fn func(groupNumber uint32, title string)) + func (this *Tox) InviteFriend(friendNumber uint32, groupNumber int) (int, error) + func (this *Tox) IsConnected() int + func (this *Tox) Iterate() + func (this *Tox) Iterate2(userData interface{}) + func (this *Tox) IterationInterval() int + func (this *Tox) JoinAVGroupChat(friendNumber uint32, cookie string) (int, error) + func (this *Tox) JoinGroupChat(friendNumber uint32, cookie string) (int, error) + func (this *Tox) Kill() + func (this *Tox) LoadSavedata(fname string) ([]byte, error) + func (this *Tox) SelfGetAddress() string + func (this *Tox) SelfGetConnectionStatus() int + func (this *Tox) SelfGetFriendList() []uint32 + func (this *Tox) SelfGetFriendListSize() uint32 + func (this *Tox) SelfGetName() string + func (this *Tox) SelfGetNameSize() int + func (this *Tox) SelfGetNospam() uint32 + func (this *Tox) SelfGetPublicKey() string + func (this *Tox) SelfGetSecretKey() string + func (this *Tox) SelfGetStatus() int + func (this *Tox) SelfGetStatusMessage() (string, error) + func (this *Tox) SelfGetStatusMessageSize() int + func (this *Tox) SelfSetName(name string) error + func (this *Tox) SelfSetNospam(nospam uint32) + func (this *Tox) SelfSetStatus(status uint8) + func (this *Tox) SelfSetStatusMessage(status string) (bool, error) + func (this *Tox) SelfSetTyping(friendNumber uint32, typing bool) (bool, error) + func (this *Tox) WriteSavedata(fname string) error + type ToxAV struct + func NewToxAV(tox *Tox) (*ToxAV, error) + func (this *ToxAV) Answer(friendNumber uint32, audioBitRate uint32, videoBitRate uint32) (bool, error) + func (this *ToxAV) AudioSendFrame(friendNumber uint32, pcm []byte, sampleCount int, channels int, ...) (bool, error) + func (this *ToxAV) AudioSetBitRate(friendNumber uint32, audioBitRate uint32) (bool, error) + func (this *ToxAV) Call(friendNumber uint32, audioBitRate uint32, videoBitRate uint32) (bool, error) + func (this *ToxAV) CallControl(friendNumber uint32, control int) (bool, error) + func (this *ToxAV) CallbackAudioBitRate(cbfn cb_audio_bit_rate_ftype, userData interface{}) + func (this *ToxAV) CallbackAudioReceiveFrame(cbfn cb_audio_receive_frame_ftype, userData interface{}) + func (this *ToxAV) CallbackCall(cbfn cb_call_ftype, userData interface{}) + func (this *ToxAV) CallbackCallState(cbfn cb_call_state_ftype, userData interface{}) + func (this *ToxAV) CallbackVideoBitRate(cbfn cb_video_bit_rate_ftype, userData interface{}) + func (this *ToxAV) CallbackVideoReceiveFrame(cbfn cb_video_receive_frame_ftype, userData interface{}) + func (this *ToxAV) GetTox() *Tox + func (this *ToxAV) Iterate() + func (this *ToxAV) IterationInterval() int + func (this *ToxAV) Kill() + func (this *ToxAV) VideoSendFrame(friendNumber uint32, width uint16, height uint16, data []byte) (bool, error) + func (this *ToxAV) VideoSetBitRate(friendNumber uint32, videoBitRate uint32) (bool, error) + type ToxOptions struct + End_port uint16 + Hole_punching_enabled bool + Ipv6_enabled bool + Local_discovery_enabled bool + LogCallback func(_ *Tox, level int, file string, line uint32, fname string, msg string) + Proxy_host string + Proxy_port uint16 + Proxy_type int32 + Savedata_data []byte + Savedata_type int + Start_port uint16 + Tcp_port uint16 + ThreadSafe bool + Udp_enabled bool + func NewToxOptions() *ToxOptions + type ToxPassKey struct + func Derive(passphrase []byte) (*ToxPassKey, error) + func DeriveWithSalt(passphrase []byte, salt []byte) (*ToxPassKey, error) + func (this *ToxPassKey) Decrypt(ciphertext []byte) (bool, error, []byte) + func (this *ToxPassKey) Encrypt(plaintext []byte) (bool, error, []byte) + func (this *ToxPassKey) Free() + type UserStatus int