Public Member Functions | |
| def | __init__ |
| Constructor for socket status. | |
| def | SOCKET_OPENED_FOR_BOTH |
| Gets information if socket is opened for both reading and writing. | |
| def | SOCKET_CLOSED_FOR_BOTH |
| Gets information if socket is closed for both reading and writing. | |
| def | HAS_SOMETHING_TO_SEND |
| Gets information if there is any interesting information to be sent via this socket. | |
| def | HAS_MESSAGES |
| Gets information if there are any data to be sent via this socket. | |
| def | openSocket |
| Sets information that this socket is opened for both reading and writing. | |
| def | closeSocketForRead |
| Sets information that this socket is closed for reading. | |
| def | closeSocketForWrite |
| Sets information that this socket is closed for writing. | |
| def | closeSocketForBoth |
| Sets information that this socket is closed both for reading and writing. | |
| def | startClosing |
| Sets information that this socket is supposed to be closed. | |
| def | finishClosing |
| Removes information that this socket is supposed to be closed. | |
| def | storeData |
| Appends message to data that are supposed to be sent via this socket. | |
| def | getData |
| Gets data that are supposed to be sent via this socket. | |
| def | clearData |
| Clears data stored for this socket. | |
| def | needMoreData |
| Sets information, that there are more data needed for data analysis, before the whole message can be sent. | |
| def | enoughData |
| Sets information, that there was enough data for data analysis. | |
Public Attributes | |
| SOCKET_INITIALY_CLOSED | |
| SOCKET_CLOSING | |
| SOCKET_OPENED_FOR_READ | |
| SOCKET_OPENED_FOR_WRITE | |
| PROCESSING_DATA | |
Private Attributes | |
| _dataToSend | |
Stores current status of tcp socket
| def Peach::Engine::ppaction::SocketStatus::__init__ | ( | self | ) |
Constructor for socket status.
Sets initial values for socket status
| def Peach::Engine::ppaction::SocketStatus::clearData | ( | self | ) |
Clears data stored for this socket.
| def Peach::Engine::ppaction::SocketStatus::closeSocketForBoth | ( | self | ) |
Sets information that this socket is closed both for reading and writing.
| def Peach::Engine::ppaction::SocketStatus::closeSocketForRead | ( | self | ) |
Sets information that this socket is closed for reading.
| def Peach::Engine::ppaction::SocketStatus::closeSocketForWrite | ( | self | ) |
Sets information that this socket is closed for writing.
| def Peach::Engine::ppaction::SocketStatus::enoughData | ( | self | ) |
Sets information, that there was enough data for data analysis.
| def Peach::Engine::ppaction::SocketStatus::finishClosing | ( | self | ) |
Removes information that this socket is supposed to be closed.
Usually called after the socket was successfuly closed.
| def Peach::Engine::ppaction::SocketStatus::getData | ( | self | ) |
Gets data that are supposed to be sent via this socket.
| def Peach::Engine::ppaction::SocketStatus::HAS_MESSAGES | ( | self | ) |
Gets information if there are any data to be sent via this socket.
| def Peach::Engine::ppaction::SocketStatus::HAS_SOMETHING_TO_SEND | ( | self | ) |
Gets information if there is any interesting information to be sent via this socket.
| def Peach::Engine::ppaction::SocketStatus::needMoreData | ( | self | ) |
Sets information, that there are more data needed for data analysis, before the whole message can be sent.
| def Peach::Engine::ppaction::SocketStatus::openSocket | ( | self | ) |
Sets information that this socket is opened for both reading and writing.
| def Peach::Engine::ppaction::SocketStatus::SOCKET_CLOSED_FOR_BOTH | ( | self | ) |
Gets information if socket is closed for both reading and writing.
| def Peach::Engine::ppaction::SocketStatus::SOCKET_OPENED_FOR_BOTH | ( | self | ) |
Gets information if socket is opened for both reading and writing.
| def Peach::Engine::ppaction::SocketStatus::startClosing | ( | self | ) |
Sets information that this socket is supposed to be closed.
| def Peach::Engine::ppaction::SocketStatus::storeData | ( | self, | ||
| message | ||||
| ) |
Appends message to data that are supposed to be sent via this socket.
| message | Message that is supposed to be appended |
1.5.8