multithreading - Sending an image object via a UDP socket in C++ -


good day,

i have image object in c++ generated via opencv. it's mat object, , want able send object in raw byte format on udp socket. size of object 200kb. have multiple objects

i going assume bad idea:

mat frame, edges; ..socket opening code.. write(sockfd,&frame,sizeof(frame)); 

i guessing correct way it, have 1 thread write mat object buffer array, , thread deques , writes socket object object. opinions on this.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -