|
wavelength 1.0.0
|
An asynchronous transfer on one connection, as the EE describes it to the module. More...
#include <asyncinfo.h>

Public Types | |
| enum | List { kListRead = 0 , kListSend = 1 } |
| Lists DumpList() can display. More... | |
Public Member Functions | |
| bool | StartReadThread () |
| Start the thread that receives on the connection. | |
| bool | StartSendThread () |
| Start the thread that sends on the connection. | |
| void | AppendRead () |
| Add the transfer to the receiving list. | |
| void | AppendSend () |
| Add the transfer to the sending list. | |
| int | PollBlocks (bool blocks, bool sending, bool *available) |
| Report whether data is waiting. | |
Static Public Member Functions | |
| static AsyncInfo * | FindRead (int cid) |
| Find the receiving transfer of a connection. | |
| static AsyncInfo * | FindSend (int cid) |
| Find the sending transfer of a connection. | |
| static bool | StopReadThread (int cid, int timeout) |
| Stop and delete the receiving thread of a connection, then remove and free its transfer. | |
| static bool | StopSendThread (int cid, int timeout) |
| Stop and delete the sending thread of a connection, then remove and free its transfer. | |
| static void | DumpList (int list) |
| Print the transfers of one list and the state of their threads. | |
Public Attributes | |
| int | mDataWaitingSize |
| int | mLastReturnedFlag |
| int | mMaxPacketSize |
| unsigned int | mReserved |
| int | mCid |
| int | mInetFlag |
| unsigned int | mBufferSize |
| unsigned char * | mBufferStart |
| AsyncInfo * | mOtherProcessorsInfo |
| AsyncInfo * | mNext |
| int | mThid |
| unsigned char * | mOtherWriteLoc |
| int | mClose |
| int | mType |
| int | mRemotePort |
| unsigned int | mWriteOffset |
Static Public Attributes | |
| static AsyncInfo * | sReadList |
| First transfer of the receiving list. | |
| static AsyncInfo * | sSendList |
| First transfer of the sending list. | |
An asynchronous transfer on one connection, as the EE describes it to the module.
A thread of the module receives into or sends from the IOP copy of the buffer and mirrors the buffer and this record into EE memory by SIF DMA. TCP connections transfer a byte stream. UDP and raw connections transfer datagrams through a ring buffer of AsyncBlock records.
The module was built without RTTI. The name comes from the module's state dump.
| enum AsyncInfo::List |
Lists DumpList() can display.
| Enumerator | |
|---|---|
| kListRead | Receiving transfers. |
| kListSend | Sending transfers. |
| bool AsyncInfo::StartReadThread | ( | ) |
Start the thread that receives on the connection.
A datagram connection gets its ring buffer first.
| bool AsyncInfo::StartSendThread | ( | ) |
Start the thread that sends on the connection.
A datagram connection gets its ring buffer first.
| void AsyncInfo::AppendRead | ( | ) |
Add the transfer to the receiving list.
| void AsyncInfo::AppendSend | ( | ) |
Add the transfer to the sending list.
|
static |
Find the receiving transfer of a connection.
| cid | Connection identifier. |
|
static |
Find the sending transfer of a connection.
| cid | Connection identifier. |
|
static |
Stop and delete the receiving thread of a connection, then remove and free its transfer.
| cid | Connection identifier. |
| timeout | Microseconds to wait for the thread to become dormant, polling every 100. |
|
static |
Stop and delete the sending thread of a connection, then remove and free its transfer.
| cid | Connection identifier. |
| timeout | Microseconds to wait for the thread to fall asleep, polling every 100. |
|
static |
Print the transfers of one list and the state of their threads.
| list | A List. |
| int AsyncInfo::PollBlocks | ( | bool | blocks, |
| bool | sending, | ||
| bool * | available ) |
Report whether data is waiting.
| blocks | True for a datagram connection. |
| sending | For a datagram connection, true to test the block at the write offset, false to search for a complete block. |
| available | Set when data is waiting. |
|
static |
First transfer of the receiving list.
|
static |
First transfer of the sending list.
| int AsyncInfo::mDataWaitingSize |
Bytes waiting, or a negative error.
| int AsyncInfo::mLastReturnedFlag |
Flags of the last transfer.
| int AsyncInfo::mMaxPacketSize |
Largest datagram.
| unsigned int AsyncInfo::mReserved |
Never touched by the module.
| int AsyncInfo::mCid |
Connection identifier.
| int AsyncInfo::mInetFlag |
Flags passed to each transfer.
| unsigned int AsyncInfo::mBufferSize |
Size of the buffer.
| unsigned char* AsyncInfo::mBufferStart |
The buffer.
| AsyncInfo* AsyncInfo::mOtherProcessorsInfo |
The EE copy of this record.
| AsyncInfo* AsyncInfo::mNext |
Next transfer of the list.
| int AsyncInfo::mThid |
Transfer thread.
| unsigned char* AsyncInfo::mOtherWriteLoc |
The EE copy of the buffer.
| int AsyncInfo::mClose |
1 when the thread must stop.
| int AsyncInfo::mType |
A #sceInetType.
| int AsyncInfo::mRemotePort |
Remote port.
| unsigned int AsyncInfo::mWriteOffset |
Offset of the current block of the ring buffer.