Klimczak.Jan Posted March 28, 2018 Posted March 28, 2018 Hi, Please confirm if I can initialize Stream/Blob object in thats way: char RecvBuf[1024]; recvfrom(RecvSocket, RecvBuf, 1024, 0, (SOCKADDR *)& SenderAddr, &SenderAddrSize); Unigine::BlobPtr temp_blob = Unigine::Blob::create(); temp_blob->resize(1024); temp_blob->puts(RecvBuf); Do I can pass native data from recvfrom winsock function in that's way ? ps. At the moment I can't get this data as socket->readStream(temp_blob->getStream(), 1024); because I can't get client port (UDP which sends data by sendto method) from Unigine socket. So I looking for workaround for it. Cheers, Jan
alexander Posted March 29, 2018 Posted March 29, 2018 Hi Jan, Do I can pass native data from recvfrom winsock function in that's way ? I think it might be better if you used temp_blob->write(RecvBuf, 1024); instead of puts(). Best regards, Alexander 1
Klimczak.Jan Posted March 29, 2018 Author Posted March 29, 2018 18 minutes ago, alexander said: Hi Jan, Do I can pass native data from recvfrom winsock function in that's way ? I think it might be better if you used temp_blob->write(RecvBuf, 1024); instead of puts(). Best regards, Alexander Thanks Alexander, I will do like that :) Jan
Recommended Posts