Use a buffer to save server data from ecore_con:
NB: Needed due to ecore_con sending partial messages sometimes, so now we can just accumulate them until the message is complete, then parse it. Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
a00740b30e
commit
423b34b3e0
|
@ -68,7 +68,7 @@ struct _Express_Network
|
|||
|
||||
Ecore_Con_Server *conn;
|
||||
|
||||
unsigned int offset;
|
||||
Eina_Binbuf *buff;
|
||||
};
|
||||
|
||||
struct _Express_Server
|
||||
|
@ -82,6 +82,6 @@ struct _Express_Server
|
|||
extern Eina_Hash *_networks;
|
||||
|
||||
void _express_network_data_send(Express_Network *net, const char *data, int len);
|
||||
void _express_network_data_process(Express_Network *net, const char *data, int offset);
|
||||
void _express_network_data_process(Express_Network *net, void *data, int offset);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue