Hi Guys
I'm writing a client that listens to messages that composed of ascii and binary strings. I want to use NSInputStream because I want to run the client on both Mac and GNUStep on Solaris. Here's a C struct that describes the first few fields of the messages :
I've looked at the NSInputStream reference but it only reads uint8_t at a time. I think I probably need to override read:maxLength: to do this...what do you think ?? If so, any tips ?? I've not been able to find an example of how to do it 🙁
Any pointerrs greatly appreciated !!!
thanks 🙂
I'm writing a client that listens to messages that composed of ascii and binary strings. I want to use NSInputStream because I want to run the client on both Mac and GNUStep on Solaris. Here's a C struct that describes the first few fields of the messages :
Code:
char messageType;
char ProtoOrVer;
uint16_t MsgLen;
uint32_t MsgSeqNum;
uint64_t ClOrdID;
char OnBehalfOfCompID[11];
char Rule80A;
char Account[12];
char TechnicalOrdType;
char ClearingFirm[8];
char ClientID[8];
char FreeText[18];
char OpenClose;
char ClearingHandlingType;
char Filler1;
uint16_t NoQuoteEntries;
I've looked at the NSInputStream reference but it only reads uint8_t at a time. I think I probably need to override read:maxLength: to do this...what do you think ?? If so, any tips ?? I've not been able to find an example of how to do it 🙁
Any pointerrs greatly appreciated !!!
thanks 🙂