我需要在目標C創建四個結構結構的目標C
它們分別是:
typedef struct FILE_TRANSFER_REQUEST_STRUCT
{
uint8_t header[16]; // This would be MD5 of String "SymbolTalk"
uint8_t type; // Type of structure -> FILE_TRANSFER_REQUEST
char fileName[512];
int totalSize; //4096
int chunkSize; //1024
int numChunks; // 4
}FileTransferRequest;
typedef struct FILE_TRANSFER_RESPONSE_STRUCT
{
uint8_t header[16]; // This would be MD5 of String "SymbolTalk"
uint8_t type; // Type of structure -> FILE_TRANSFER_RESPONSE
;
}FileTransferResponse;
typedef struct FILE_CHUNK_REQUEST_STRUCT
{
uint8_t header[16]; // This would be MD5 of String "SymbolTalk"
uint8_t type; // Type of structure -> FILE_CHUNK_REQUEST
uint8_t data[1024];
uint8_t chunkNumber;
uint8_t chunkSize;
}FileChunkRequest;
typedef struct FILE_CHUNK_RESPONSE_STRUCT
{
uint8_t header[16]; // This would be MD5 of String "SymbolTalk"
uint8_t type; // Type of structure -> FILE_CHUNK_RESPONSE
uint8_t chunkNumber;
}FileChunkResponse;
但是我不知道有關目標struct.how我可以做this.where我需要創建這個結構(需要避免類)。就是它的目標C類寫file.can任何一個可以告訴我,我怎麼能在另一個class..can任何一個可以幫助我得到這個結構...
看起來對我來說很好。什麼不行? – zneak
ok ... working .... – Christina