#include "frdi.h"
Functions | |
frdi_connection * | frdiConnectionNew (frdi_app *self, frdi_handler *local, frdi_application *remote) |
void | frdiConnectionSetReceiver (frdi_connection *connection, frdi_handler *local) |
void | frdiConnectionConnect (frdi_connection *connection) |
void | frdiConnectionReceiverProcess (frdi_connection *connection) |
void | frdiConnectionReceiverThreadRun (frdi_connection *connection) |
void | frdiConnectionReceiverThreadLaunch (frdi_connection *connection) |
void | frdiConnectionDisconnect (frdi_connection *connection) |
void | frdiConnectionFree (frdi_connection *connection) |
void | frdiIntToPaddedHex (int i, char size_str[FRDI_MESSAGE_SIZE_HEX_LEN]) |
void | frdiConnectionSendMessage (frdi_connection *connection, frdi_message *message) |
int | frdiConnectionIsOpen (frdi_connection *connection) |
|
create a new data connection object (NOT A LISTENER) NOTE: this does not do the actual connection. |
|
used by Listener |
|
try to connect if it fails, it will tell your handler so Note, in the case of a connection spawned by the listener end, this method will not be called. |
|
receive one message's worth of data |
|
See THREAD CREATION PATTERN |
|
Start receiving data on the connection (See THREAD CREATION PATTERN) |
|
drop the connection |
|
free up the memory used by a frdi_connection object the connection it represents MUST already be closed |
|
convert an into to HHHH |
|
send the message |
|
Returns 1 if the connection is opening Returns 0 if it is not or is in the process of closing |