Collaboration diagram for SocketCommunication:
![]() |
Modules | |
TransactionCommands | |
Command types used by Socket Frontend/IMEngine/Config and Panel. | |
Classes | |
class | scim::SocketError |
An exception class to hold Socket related errors. More... | |
class | scim::SocketAddress |
The class to hold a socket address. More... | |
class | scim::Socket |
Socket communication class. More... | |
class | scim::SocketServer |
Socket Server class. More... | |
class | scim::SocketClient |
Socket client class. More... | |
class | scim::SocketTransactionError |
An exception class to hold SocketTransaction related errors. More... | |
class | scim::SocketTransaction |
This class is used to pack up many data and commands into one package and send them via socket. More... | |
Typedefs | |
typedef Signal2< void, SocketServer *, const Socket & > | scim::SocketServerSignalSocket |
Enumerations | |
enum | scim::SocketFamily { scim::SCIM_SOCKET_UNKNOWN, scim::SCIM_SOCKET_LOCAL, scim::SCIM_SOCKET_INET } |
The vaild socket address/protocol family,. More... | |
enum | scim::SocketTransactionDataType { scim::SCIM_TRANS_DATA_UNKNOWN, scim::SCIM_TRANS_DATA_COMMAND, scim::SCIM_TRANS_DATA_RAW, scim::SCIM_TRANS_DATA_UINT32, scim::SCIM_TRANS_DATA_STRING, scim::SCIM_TRANS_DATA_WSTRING, scim::SCIM_TRANS_DATA_KEYEVENT, scim::SCIM_TRANS_DATA_ATTRIBUTE_LIST, scim::SCIM_TRANS_DATA_LOOKUP_TABLE, scim::SCIM_TRANS_DATA_PROPERTY, scim::SCIM_TRANS_DATA_PROPERTY_LIST, scim::SCIM_TRANS_DATA_VECTOR_UINT32, scim::SCIM_TRANS_DATA_VECTOR_STRING, scim::SCIM_TRANS_DATA_VECTOR_WSTRING } |
Signature of all valid data types which can be store into transaction. More... | |
Functions | |
String | scim::scim_get_default_socket_frontend_address () |
Get the default socket address of SocketFrontEnd. | |
String | scim::scim_get_default_socket_imengine_address () |
Get the default socket address of SocketIMEngine. | |
String | scim::scim_get_default_socket_config_address () |
Get the default socket address of SocketConfig. | |
String | scim::scim_get_default_panel_socket_address () |
Get the default socket address of the Panel running on localhost. | |
int | scim::scim_get_default_socket_timeout () |
Get the default socket timeout value. | |
bool | scim::scim_socket_trans_open_connection (uint32 &key, const String &client_type, const String &server_type, const Socket &socket, int timeout=-1) |
Helper function to open a connection to a socket server with a standard hand shake protocol. | |
String | scim::scim_socket_trans_accept_connection (uint32 &key, const String &server_types, const String &client_types, const Socket &socket, int timeout=-1) |
Helper function to accept a connection request from a socket client with a standard hand shake protocol. | |
Variables | |
class class class typedef Slot2< void, SocketServer *, const Socket & > | scim::SocketServerSlotSocket |
|
Definition at line 51 of file scim_socket.h. |
|
The vaild socket address/protocol family,. Corresponding to libc PF_LOCAL/AF_LOCAL and PF_INET/AF_INET
Definition at line 71 of file scim_socket.h. |
|
Signature of all valid data types which can be store into transaction.
Definition at line 45 of file scim_socket_transaction.h. |
|
Get the default socket address of SocketFrontEnd. SocketFrontEnd should listen on this address by default. |
|
Get the default socket address of SocketIMEngine. SocketIMEngine should connect to this address by default. |
|
Get the default socket address of SocketConfig. SocketConfig should connect to this address by default. |
|
Get the default socket address of the Panel running on localhost. The panel running on local host should listen on this address by default. All FrontEnds which need panel should connect to this address by default. |
|
Get the default socket timeout value. All socket connection should use this timeout value. |
|
Helper function to open a connection to a socket server with a standard hand shake protocol. This function is used by a socket client to establish a connection between a socket server with a standard hand shake protocol. The communication between Panel and FrontEnd, SocketFrontEnd and SocketIMEngine, SocketFrontEnd and SocketConfig all uses this hand shake protocol.
|
|
Helper function to accept a connection request from a socket client with a standard hand shake protocol. This function is used by a socket server to accept a connection request from a socket client which is calling scim_socket_trans_open_connection (). If a client with type "ConnectionTester" connected to this socket server, then this function will return an empty string, but tell the client the connection was established successfully.
|
|
Definition at line 45 of file scim_socket.h. |