C# 클래스 SharpTox.Core.Tox

Represents an instance of tox.
상속: IDisposable
파일 보기 프로젝트 열기: hexafluoride/Detox 1 사용 예제들

공개 메소드들

메소드 설명
AddFriend ( ToxId id, string message ) : int

Adds a friend to the friend list and sends a friend request.

AddFriend ( ToxId id, string message, ToxErrorFriendAdd &error ) : int

Adds a friend to the friend list and sends a friend request.

AddFriendNoRequest ( ToxKey publicKey ) : int

Adds a friend to the friend list without sending a friend request. This method should be used to accept friend requests.

AddFriendNoRequest ( ToxKey publicKey, ToxErrorFriendAdd &error ) : int

Adds a friend to the friend list without sending a friend request. This method should be used to accept friend requests.

AddTcpRelay ( ToxNode node ) : bool

Adds a node as a TCP relay. This method can be used to initiate TCP connections to different ports on the same bootstrap node, or to add TCP relays without using them as bootstrap nodes.

AddTcpRelay ( ToxNode node, ToxErrorBootstrap &error ) : bool

Adds a node as a TCP relay. This method can be used to initiate TCP connections to different ports on the same bootstrap node, or to add TCP relays without using them as bootstrap nodes.

Bootstrap ( ToxNode node ) : bool

Attempts to bootstrap this Tox instance with a ToxNode. A 'getnodes' request is sent to the given node.

Bootstrap ( ToxNode node, ToxErrorBootstrap &error ) : bool

Attempts to bootstrap this Tox instance with a ToxNode. A 'getnodes' request is sent to the given node.

DeleteFriend ( int friendNumber ) : bool

Deletes a friend from the friend list.

DeleteFriend ( int friendNumber, ToxErrorFriendDelete &error ) : bool

Deletes a friend from the friend list.

DeleteGroupChat ( int groupNumber ) : bool

Deletes a group chat.

Dispose ( ) : void

Releases all resources used by this instance of Tox.

FileControl ( int friendNumber, int fileNumber, ToxFileControl control ) : bool

Sends a file control command to a friend for a given file transfer.

FileControl ( int friendNumber, int fileNumber, ToxFileControl control, ToxErrorFileControl &error ) : bool

Sends a file control command to a friend for a given file transfer.

FileGetId ( int friendNumber, int fileNumber ) : byte[]

Retrieves the unique id of a file transfer. This can be used to uniquely identify file transfers across core restarts.

FileGetId ( int friendNumber, int fileNumber, ToxErrorFileGet &error ) : byte[]

Retrieves the unique id of a file transfer. This can be used to uniquely identify file transfers across core restarts.

FileSeek ( int friendNumber, int fileNumber, long position ) : bool

Sends a file seek control command to a friend for a given file transfer.

FileSeek ( int friendNumber, int fileNumber, long position, ToxErrorFileSeek &error ) : bool

Sends a file seek control command to a friend for a given file transfer.

FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName ) : ToxFileInfo

Send a file transmission request.

FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName, ToxErrorFileSend &error ) : ToxFileInfo

Send a file transmission request.

FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName, byte fileId ) : ToxFileInfo

Send a file transmission request.

FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName, byte fileId, ToxErrorFileSend &error ) : ToxFileInfo

Send a file transmission request.

FileSendChunk ( int friendNumber, int fileNumber, long position, byte data ) : bool

Sends a chunk of file data to a friend. This should be called in response to OnFileChunkRequested.

FileSendChunk ( int friendNumber, int fileNumber, long position, byte data, ToxErrorFileSendChunk &error ) : bool

Sends a chunk of file data to a friend. This should be called in response to OnFileChunkRequested.

FriendExists ( int friendNumber ) : bool

Checks if there exists a friend with given friendNumber.

FriendSendLosslessPacket ( int friendNumber, byte data ) : bool

Sends a custom lossless packet to a friend. Lossless packets behave like TCP, they're reliable and arrive in order. The difference is that it's not a stream.

FriendSendLosslessPacket ( int friendNumber, byte data, ToxErrorFriendCustomPacket &error ) : bool

Sends a custom lossless packet to a friend. Lossless packets behave like TCP, they're reliable and arrive in order. The difference is that it's not a stream.

FriendSendLossyPacket ( int friendNumber, byte data ) : bool

Sends a custom lossy packet to a friend. Lossy packets are like UDP packets, they may never reach the other side, arrive more than once or arrive in the wrong order.

FriendSendLossyPacket ( int friendNumber, byte data, ToxErrorFriendCustomPacket &error ) : bool

Sends a custom lossy packet to a friend. Lossy packets are like UDP packets, they may never reach the other side, arrive more than once or arrive in the wrong order.

GetData ( ) : ToxData

Retrieves a ToxData object that contains the profile data of this Tox instance.

GetData ( ToxEncryptionKey key ) : ToxData

Retrieves a ToxData object that contains the profile data of this Tox instance, encrypted with the provided key.

GetFriendByPublicKey ( ToxKey publicKey ) : int

Retrieves the friendNumber associated with the specified public key.

GetFriendByPublicKey ( ToxKey publicKey, ToxErrorFriendByPublicKey &error ) : int

Retrieves the friendNumber associated with the specified public key.

GetFriendConnectionStatus ( int friendNumber ) : ToxConnectionStatus

Retrieves a friend's connection status.

GetFriendConnectionStatus ( int friendNumber, ToxErrorFriendQuery &error ) : ToxConnectionStatus

Retrieves a friend's connection status.

GetFriendLastOnline ( int friendNumber ) : System.DateTime

Retrieves the time a friend was last seen online.

GetFriendLastOnline ( int friendNumber, ToxErrorFriendGetLastOnline &error ) : System.DateTime

Retrieves the time a friend was last seen online.

GetFriendName ( int friendNumber ) : string

Retrieves the name of a friend.

GetFriendName ( int friendNumber, ToxErrorFriendQuery &error ) : string

Retrieves the name of a friend.

GetFriendPublicKey ( int friendNumber ) : ToxKey

Retrieves a friend's public key.

GetFriendPublicKey ( int friendNumber, ToxErrorFriendGetPublicKey &error ) : ToxKey

Retrieves a friend's public key.

GetFriendStatus ( int friendNumber ) : ToxUserStatus

Retrieves a friend's current status.

GetFriendStatus ( int friendNumber, ToxErrorFriendQuery &error ) : ToxUserStatus

Retrieves a friend's current status.

GetFriendStatusMessage ( int friendNumber ) : string

Retrieves the status message of a friend.

GetFriendStatusMessage ( int friendNumber, ToxErrorFriendQuery &error ) : string

Retrieves the status message of a friend.

GetFriendTypingStatus ( int friendNumber ) : bool

Retrieves the typing status of a friend.

GetFriendTypingStatus ( int friendNumber, ToxErrorFriendQuery &error ) : bool

Retrieves the typing status of a friend.

GetGroupMemberCount ( int groupNumber ) : int

Retrieves the number of group members in a group chat.

GetGroupMemberName ( int groupNumber, int peerNumber ) : string

Retrieves the name of a group member.

GetGroupNames ( int groupNumber ) : string[]

Retrieves an array of group member names.

GetGroupPeerPublicKey ( int groupNumber, int peerNumber ) : ToxKey

Retrieves the public key of a peer.

GetGroupTitle ( int groupNumber ) : string

Retrieves the title of a group.

GetGroupType ( int groupNumber ) : ToxGroupType

Retrieves the type of a group.

GetPrivateKey ( ) : ToxKey

Retrieves the private key of this Tox instance.

GetTcpPort ( ) : int

Retrieves the TCP port this instance of Tox is bound to.

GetTcpPort ( ToxErrorGetPort &error ) : int

Retrieves the TCP port this instance of Tox is bound to.

GetUdpPort ( ) : int

Retrieves the UDP port this instance of Tox is bound to.

GetUdpPort ( ToxErrorGetPort &error ) : int

Retrieves the UDP port this instance of Tox is bound to.

InviteFriend ( int friendNumber, int groupNumber ) : bool

Invites a friend to a group chat.

IsFriendOnline ( int friendNumber ) : bool

Check whether or not a friend is online.

Iterate ( ) : int

Runs the tox_iterate once in the current thread.

JoinGroup ( int friendNumber, byte data ) : int

Joins a group with the given public key of the group.

NewGroup ( ) : int

Creates a new group and retrieves the group number.

PeerNumberIsOurs ( int groupNumber, int peerNumber ) : bool

Check if the given peernumber corresponds to ours.

SendGroupAction ( int groupNumber, string action ) : bool

Sends an action to a group.

SendGroupMessage ( int groupNumber, string message ) : bool

Sends a message to a group.

SendMessage ( int friendNumber, string message, ToxMessageType type ) : int

Sends a message to a friend.

SendMessage ( int friendNumber, string message, ToxMessageType type, ToxErrorSendMessage &error ) : int

Sends a message to a friend.

SetGroupTitle ( int groupNumber, string title ) : bool

Changes the title of a group.

SetTypingStatus ( int friendNumber, bool isTyping ) : bool

Sets the typing status of this Tox instance for a friend.

SetTypingStatus ( int friendNumber, bool isTyping, ToxErrorSetTyping &error ) : bool

Sets the typing status of this Tox instance for a friend.

Start ( ) : void

Starts the main 'tox_iterate' loop at an interval retrieved with 'tox_iteration_interval'. If you want to manage your own loop, use the Iterate method instead.

Stop ( ) : void

Stops the main tox_do loop if it's running.

Tox ( ToxOptions options, ToxData data, ToxEncryptionKey key = null ) : System

Initializes a new instance of Tox.

Tox ( ToxOptions options, ToxKey secretKey = null ) : System

Initializes a new instance of Tox. If no secret key is specified, toxcore will generate a new keypair.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void
DoIterate ( ) : int
GetNospam ( ) : uint
Loop ( ) : void
SetNospam ( uint nospam ) : void
ThrowIfDisposed ( ) : void

메소드 상세

AddFriend() 공개 메소드

Adds a friend to the friend list and sends a friend request.
public AddFriend ( ToxId id, string message ) : int
id ToxId The Tox id of the friend to add.
message string The message that will be sent along with the friend request.
리턴 int

AddFriend() 공개 메소드

Adds a friend to the friend list and sends a friend request.
public AddFriend ( ToxId id, string message, ToxErrorFriendAdd &error ) : int
id ToxId The Tox id of the friend to add.
message string The message that will be sent along with the friend request.
error ToxErrorFriendAdd
리턴 int

AddFriendNoRequest() 공개 메소드

Adds a friend to the friend list without sending a friend request. This method should be used to accept friend requests.
public AddFriendNoRequest ( ToxKey publicKey ) : int
publicKey ToxKey The public key of the friend to add.
리턴 int

AddFriendNoRequest() 공개 메소드

Adds a friend to the friend list without sending a friend request. This method should be used to accept friend requests.
public AddFriendNoRequest ( ToxKey publicKey, ToxErrorFriendAdd &error ) : int
publicKey ToxKey The public key of the friend to add.
error ToxErrorFriendAdd
리턴 int

AddTcpRelay() 공개 메소드

Adds a node as a TCP relay. This method can be used to initiate TCP connections to different ports on the same bootstrap node, or to add TCP relays without using them as bootstrap nodes.
public AddTcpRelay ( ToxNode node ) : bool
node ToxNode The node to add.
리턴 bool

AddTcpRelay() 공개 메소드

Adds a node as a TCP relay. This method can be used to initiate TCP connections to different ports on the same bootstrap node, or to add TCP relays without using them as bootstrap nodes.
public AddTcpRelay ( ToxNode node, ToxErrorBootstrap &error ) : bool
node ToxNode The node to add.
error ToxErrorBootstrap
리턴 bool

Bootstrap() 공개 메소드

Attempts to bootstrap this Tox instance with a ToxNode. A 'getnodes' request is sent to the given node.
public Bootstrap ( ToxNode node ) : bool
node ToxNode The node to bootstrap off of.
리턴 bool

Bootstrap() 공개 메소드

Attempts to bootstrap this Tox instance with a ToxNode. A 'getnodes' request is sent to the given node.
public Bootstrap ( ToxNode node, ToxErrorBootstrap &error ) : bool
node ToxNode The node to bootstrap off of.
error ToxErrorBootstrap
리턴 bool

DeleteFriend() 공개 메소드

Deletes a friend from the friend list.
public DeleteFriend ( int friendNumber ) : bool
friendNumber int The friend number to be deleted.
리턴 bool

DeleteFriend() 공개 메소드

Deletes a friend from the friend list.
public DeleteFriend ( int friendNumber, ToxErrorFriendDelete &error ) : bool
friendNumber int The friend number to be deleted.
error ToxErrorFriendDelete
리턴 bool

DeleteGroupChat() 공개 메소드

Deletes a group chat.
public DeleteGroupChat ( int groupNumber ) : bool
groupNumber int The group to delete.
리턴 bool

Dispose() 공개 메소드

Releases all resources used by this instance of Tox.
public Dispose ( ) : void
리턴 void

FileControl() 공개 메소드

Sends a file control command to a friend for a given file transfer.
public FileControl ( int friendNumber, int fileNumber, ToxFileControl control ) : bool
friendNumber int The friend to send the file control to.
fileNumber int The file transfer that this control is meant for.
control ToxFileControl The control to send.
리턴 bool

FileControl() 공개 메소드

Sends a file control command to a friend for a given file transfer.
public FileControl ( int friendNumber, int fileNumber, ToxFileControl control, ToxErrorFileControl &error ) : bool
friendNumber int The friend to send the file control to.
fileNumber int The file transfer that this control is meant for.
control ToxFileControl The control to send.
error ToxErrorFileControl
리턴 bool

FileGetId() 공개 메소드

Retrieves the unique id of a file transfer. This can be used to uniquely identify file transfers across core restarts.
public FileGetId ( int friendNumber, int fileNumber ) : byte[]
friendNumber int The friend number that's associated with this transfer.
fileNumber int The target file transfer.
리턴 byte[]

FileGetId() 공개 메소드

Retrieves the unique id of a file transfer. This can be used to uniquely identify file transfers across core restarts.
public FileGetId ( int friendNumber, int fileNumber, ToxErrorFileGet &error ) : byte[]
friendNumber int The friend number that's associated with this transfer.
fileNumber int The target file transfer.
error ToxErrorFileGet
리턴 byte[]

FileSeek() 공개 메소드

Sends a file seek control command to a friend for a given file transfer.
public FileSeek ( int friendNumber, int fileNumber, long position ) : bool
friendNumber int The friend to send the seek command to.
fileNumber int The file transfer that this command is meant for.
position long The position that the friend should change his stream to.
리턴 bool

FileSeek() 공개 메소드

Sends a file seek control command to a friend for a given file transfer.
public FileSeek ( int friendNumber, int fileNumber, long position, ToxErrorFileSeek &error ) : bool
friendNumber int The friend to send the seek command to.
fileNumber int The file transfer that this command is meant for.
position long The position that the friend should change his stream to.
error ToxErrorFileSeek
리턴 bool

FileSend() 공개 메소드

Send a file transmission request.
public FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName ) : ToxFileInfo
friendNumber int The friend number to send the request to.
kind ToxFileKind The kind of file that will be transferred.
fileSize long The size of the file that will be transferred.
fileName string The filename of the file that will be transferred.
리턴 ToxFileInfo

FileSend() 공개 메소드

Send a file transmission request.
public FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName, ToxErrorFileSend &error ) : ToxFileInfo
friendNumber int The friend number to send the request to.
kind ToxFileKind The kind of file that will be transferred.
fileSize long The size of the file that will be transferred.
fileName string The filename of the file that will be transferred.
error ToxErrorFileSend
리턴 ToxFileInfo

FileSend() 공개 메소드

Send a file transmission request.
public FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName, byte fileId ) : ToxFileInfo
friendNumber int The friend number to send the request to.
kind ToxFileKind The kind of file that will be transferred.
fileSize long The size of the file that will be transferred.
fileName string The filename of the file that will be transferred.
fileId byte The id to identify this transfer with. Should be ToxConstants.FileIdLength bytes long.
리턴 ToxFileInfo

FileSend() 공개 메소드

Send a file transmission request.
public FileSend ( int friendNumber, ToxFileKind kind, long fileSize, string fileName, byte fileId, ToxErrorFileSend &error ) : ToxFileInfo
friendNumber int The friend number to send the request to.
kind ToxFileKind The kind of file that will be transferred.
fileSize long The size of the file that will be transferred.
fileName string The filename of the file that will be transferred.
fileId byte The id to identify this transfer with. Should be ToxConstants.FileIdLength bytes long.
error ToxErrorFileSend
리턴 ToxFileInfo

FileSendChunk() 공개 메소드

Sends a chunk of file data to a friend. This should be called in response to OnFileChunkRequested.
public FileSendChunk ( int friendNumber, int fileNumber, long position, byte data ) : bool
friendNumber int The friend to send the chunk to.
fileNumber int The file transfer that this chunk belongs to.
position long The position from which to continue reading.
data byte The data to send. (should be equal to 'Length' received through OnFileChunkRequested).
리턴 bool

FileSendChunk() 공개 메소드

Sends a chunk of file data to a friend. This should be called in response to OnFileChunkRequested.
public FileSendChunk ( int friendNumber, int fileNumber, long position, byte data, ToxErrorFileSendChunk &error ) : bool
friendNumber int The friend to send the chunk to.
fileNumber int The file transfer that this chunk belongs to.
position long The position from which to continue reading.
data byte The data to send. (should be equal to 'Length' received through OnFileChunkRequested).
error ToxErrorFileSendChunk
리턴 bool

FriendExists() 공개 메소드

Checks if there exists a friend with given friendNumber.
public FriendExists ( int friendNumber ) : bool
friendNumber int The friend number to check.
리턴 bool

FriendSendLosslessPacket() 공개 메소드

Sends a custom lossless packet to a friend. Lossless packets behave like TCP, they're reliable and arrive in order. The difference is that it's not a stream.
public FriendSendLosslessPacket ( int friendNumber, byte data ) : bool
friendNumber int The friend to send the packet to.
data byte The data to send. The first byte must be in the range 160-191. The maximum length of the data is ToxConstants.MaxCustomPacketSize
리턴 bool

FriendSendLosslessPacket() 공개 메소드

Sends a custom lossless packet to a friend. Lossless packets behave like TCP, they're reliable and arrive in order. The difference is that it's not a stream.
public FriendSendLosslessPacket ( int friendNumber, byte data, ToxErrorFriendCustomPacket &error ) : bool
friendNumber int The friend to send the packet to.
data byte The data to send. The first byte must be in the range 160-191. The maximum length of the data is ToxConstants.MaxCustomPacketSize
error ToxErrorFriendCustomPacket
리턴 bool

FriendSendLossyPacket() 공개 메소드

Sends a custom lossy packet to a friend. Lossy packets are like UDP packets, they may never reach the other side, arrive more than once or arrive in the wrong order.
public FriendSendLossyPacket ( int friendNumber, byte data ) : bool
friendNumber int The friend to send the packet to.
data byte The data to send. The first byte must be in the range 200-254. The maximum length of the data is ToxConstants.MaxCustomPacketSize
리턴 bool

FriendSendLossyPacket() 공개 메소드

Sends a custom lossy packet to a friend. Lossy packets are like UDP packets, they may never reach the other side, arrive more than once or arrive in the wrong order.
public FriendSendLossyPacket ( int friendNumber, byte data, ToxErrorFriendCustomPacket &error ) : bool
friendNumber int The friend to send the packet to.
data byte The data to send. The first byte must be in the range 200-254. The maximum length of the data is ToxConstants.MaxCustomPacketSize
error ToxErrorFriendCustomPacket
리턴 bool

GetData() 공개 메소드

Retrieves a ToxData object that contains the profile data of this Tox instance.
public GetData ( ) : ToxData
리턴 ToxData

GetData() 공개 메소드

Retrieves a ToxData object that contains the profile data of this Tox instance, encrypted with the provided key.
public GetData ( ToxEncryptionKey key ) : ToxData
key ToxEncryptionKey The key to encrypt the Tox data with.
리턴 ToxData

GetFriendByPublicKey() 공개 메소드

Retrieves the friendNumber associated with the specified public key.
public GetFriendByPublicKey ( ToxKey publicKey ) : int
publicKey ToxKey The public key to look for.
리턴 int

GetFriendByPublicKey() 공개 메소드

Retrieves the friendNumber associated with the specified public key.
public GetFriendByPublicKey ( ToxKey publicKey, ToxErrorFriendByPublicKey &error ) : int
publicKey ToxKey The public key to look for.
error ToxErrorFriendByPublicKey
리턴 int

GetFriendConnectionStatus() 공개 메소드

Retrieves a friend's connection status.
public GetFriendConnectionStatus ( int friendNumber ) : ToxConnectionStatus
friendNumber int The friend number to retrieve the connection status of.
리턴 ToxConnectionStatus

GetFriendConnectionStatus() 공개 메소드

Retrieves a friend's connection status.
public GetFriendConnectionStatus ( int friendNumber, ToxErrorFriendQuery &error ) : ToxConnectionStatus
friendNumber int The friend number to retrieve the connection status of.
error ToxErrorFriendQuery
리턴 ToxConnectionStatus

GetFriendLastOnline() 공개 메소드

Retrieves the time a friend was last seen online.
public GetFriendLastOnline ( int friendNumber ) : System.DateTime
friendNumber int The friend to retrieve the 'last online' of.
리턴 System.DateTime

GetFriendLastOnline() 공개 메소드

Retrieves the time a friend was last seen online.
public GetFriendLastOnline ( int friendNumber, ToxErrorFriendGetLastOnline &error ) : System.DateTime
friendNumber int The friend to retrieve the 'last online' of.
error ToxErrorFriendGetLastOnline
리턴 System.DateTime

GetFriendName() 공개 메소드

Retrieves the name of a friend.
public GetFriendName ( int friendNumber ) : string
friendNumber int The friend number to retrieve the name of.
리턴 string

GetFriendName() 공개 메소드

Retrieves the name of a friend.
public GetFriendName ( int friendNumber, ToxErrorFriendQuery &error ) : string
friendNumber int The friend number to retrieve the name of.
error ToxErrorFriendQuery
리턴 string

GetFriendPublicKey() 공개 메소드

Retrieves a friend's public key.
public GetFriendPublicKey ( int friendNumber ) : ToxKey
friendNumber int The friend number to retrieve the public key of.
리턴 ToxKey

GetFriendPublicKey() 공개 메소드

Retrieves a friend's public key.
public GetFriendPublicKey ( int friendNumber, ToxErrorFriendGetPublicKey &error ) : ToxKey
friendNumber int The friend number to retrieve the public key of.
error ToxErrorFriendGetPublicKey
리턴 ToxKey

GetFriendStatus() 공개 메소드

Retrieves a friend's current status.
public GetFriendStatus ( int friendNumber ) : ToxUserStatus
friendNumber int The friend number to retrieve the status of.
리턴 ToxUserStatus

GetFriendStatus() 공개 메소드

Retrieves a friend's current status.
public GetFriendStatus ( int friendNumber, ToxErrorFriendQuery &error ) : ToxUserStatus
friendNumber int The friend number to retrieve the status of.
error ToxErrorFriendQuery
리턴 ToxUserStatus

GetFriendStatusMessage() 공개 메소드

Retrieves the status message of a friend.
public GetFriendStatusMessage ( int friendNumber ) : string
friendNumber int The friend number to retrieve the status message of.
리턴 string

GetFriendStatusMessage() 공개 메소드

Retrieves the status message of a friend.
public GetFriendStatusMessage ( int friendNumber, ToxErrorFriendQuery &error ) : string
friendNumber int The friend number to retrieve the status message of.
error ToxErrorFriendQuery
리턴 string

GetFriendTypingStatus() 공개 메소드

Retrieves the typing status of a friend.
public GetFriendTypingStatus ( int friendNumber ) : bool
friendNumber int The friend number to retrieve the typing status of.
리턴 bool

GetFriendTypingStatus() 공개 메소드

Retrieves the typing status of a friend.
public GetFriendTypingStatus ( int friendNumber, ToxErrorFriendQuery &error ) : bool
friendNumber int The friend number to retrieve the typing status of.
error ToxErrorFriendQuery
리턴 bool

GetGroupMemberCount() 공개 메소드

Retrieves the number of group members in a group chat.
public GetGroupMemberCount ( int groupNumber ) : int
groupNumber int The group to get the member count of.
리턴 int

GetGroupMemberName() 공개 메소드

Retrieves the name of a group member.
public GetGroupMemberName ( int groupNumber, int peerNumber ) : string
groupNumber int The group that the peer is in.
peerNumber int The peer to retrieve the name of.
리턴 string

GetGroupNames() 공개 메소드

Retrieves an array of group member names.
public GetGroupNames ( int groupNumber ) : string[]
groupNumber int The group to retrieve member names of.
리턴 string[]

GetGroupPeerPublicKey() 공개 메소드

Retrieves the public key of a peer.
public GetGroupPeerPublicKey ( int groupNumber, int peerNumber ) : ToxKey
groupNumber int The group that the peer is in.
peerNumber int The peer to retrieve the public key of.
리턴 ToxKey

GetGroupTitle() 공개 메소드

Retrieves the title of a group.
public GetGroupTitle ( int groupNumber ) : string
groupNumber int The group to retrieve the title of.
리턴 string

GetGroupType() 공개 메소드

Retrieves the type of a group.
public GetGroupType ( int groupNumber ) : ToxGroupType
groupNumber int The group to retrieve the type of.
리턴 ToxGroupType

GetPrivateKey() 공개 메소드

Retrieves the private key of this Tox instance.
public GetPrivateKey ( ) : ToxKey
리턴 ToxKey

GetTcpPort() 공개 메소드

Retrieves the TCP port this instance of Tox is bound to.
public GetTcpPort ( ) : int
리턴 int

GetTcpPort() 공개 메소드

Retrieves the TCP port this instance of Tox is bound to.
public GetTcpPort ( ToxErrorGetPort &error ) : int
error ToxErrorGetPort
리턴 int

GetUdpPort() 공개 메소드

Retrieves the UDP port this instance of Tox is bound to.
public GetUdpPort ( ) : int
리턴 int

GetUdpPort() 공개 메소드

Retrieves the UDP port this instance of Tox is bound to.
public GetUdpPort ( ToxErrorGetPort &error ) : int
error ToxErrorGetPort
리턴 int

InviteFriend() 공개 메소드

Invites a friend to a group chat.
public InviteFriend ( int friendNumber, int groupNumber ) : bool
friendNumber int The friend to invite to a group.
groupNumber int The group to invite the friend to.
리턴 bool

IsFriendOnline() 공개 메소드

Check whether or not a friend is online.
public IsFriendOnline ( int friendNumber ) : bool
friendNumber int The friend number.
리턴 bool

Iterate() 공개 메소드

Runs the tox_iterate once in the current thread.
public Iterate ( ) : int
리턴 int

JoinGroup() 공개 메소드

Joins a group with the given public key of the group.
public JoinGroup ( int friendNumber, byte data ) : int
friendNumber int The friend number we received an invite from.
data byte Data obtained from the OnGroupInvite event.
리턴 int

NewGroup() 공개 메소드

Creates a new group and retrieves the group number.
public NewGroup ( ) : int
리턴 int

PeerNumberIsOurs() 공개 메소드

Check if the given peernumber corresponds to ours.
public PeerNumberIsOurs ( int groupNumber, int peerNumber ) : bool
groupNumber int The group to check in.
peerNumber int The peer number to check.
리턴 bool

SendGroupAction() 공개 메소드

Sends an action to a group.
public SendGroupAction ( int groupNumber, string action ) : bool
groupNumber int The group to send the action to.
action string The action to send.
리턴 bool

SendGroupMessage() 공개 메소드

Sends a message to a group.
public SendGroupMessage ( int groupNumber, string message ) : bool
groupNumber int The group to send the message to.
message string The message to send.
리턴 bool

SendMessage() 공개 메소드

Sends a message to a friend.
public SendMessage ( int friendNumber, string message, ToxMessageType type ) : int
friendNumber int The friend number to send the message to.
message string The message to be sent. Maximum length:
type ToxMessageType The type of this message.
리턴 int

SendMessage() 공개 메소드

Sends a message to a friend.
public SendMessage ( int friendNumber, string message, ToxMessageType type, ToxErrorSendMessage &error ) : int
friendNumber int The friend number to send the message to.
message string The message to be sent. Maximum length:
type ToxMessageType The type of this message.
error ToxErrorSendMessage
리턴 int

SetGroupTitle() 공개 메소드

Changes the title of a group.
public SetGroupTitle ( int groupNumber, string title ) : bool
groupNumber int The group to change the title of.
title string The title to set.
리턴 bool

SetTypingStatus() 공개 메소드

Sets the typing status of this Tox instance for a friend.
public SetTypingStatus ( int friendNumber, bool isTyping ) : bool
friendNumber int The friend number to set the typing status for.
isTyping bool Whether or not we're typing.
리턴 bool

SetTypingStatus() 공개 메소드

Sets the typing status of this Tox instance for a friend.
public SetTypingStatus ( int friendNumber, bool isTyping, ToxErrorSetTyping &error ) : bool
friendNumber int The friend number to set the typing status for.
isTyping bool Whether or not we're typing.
error ToxErrorSetTyping
리턴 bool

Start() 공개 메소드

Starts the main 'tox_iterate' loop at an interval retrieved with 'tox_iteration_interval'. If you want to manage your own loop, use the Iterate method instead.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the main tox_do loop if it's running.
public Stop ( ) : void
리턴 void

Tox() 공개 메소드

Initializes a new instance of Tox.
public Tox ( ToxOptions options, ToxData data, ToxEncryptionKey key = null ) : System
options ToxOptions The options to initialize this instance of Tox with.
data ToxData A byte array containing Tox save data.
key ToxEncryptionKey The key to decrypt the given encrypted Tox profile data. If the data is not encrypted, this should be null.
리턴 System

Tox() 공개 메소드

Initializes a new instance of Tox. If no secret key is specified, toxcore will generate a new keypair.
public Tox ( ToxOptions options, ToxKey secretKey = null ) : System
options ToxOptions The options to initialize this instance of Tox with.
secretKey ToxKey Optionally, specify the secret key to initialize this instance of Tox with. Must be ToxConstants.SecretKeySize bytes in size.
리턴 System