Klimczak.Jan Posted March 28, 2018 Share 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 Link to comment
alexander Posted March 29, 2018 Share 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 Link to comment
Klimczak.Jan Posted March 29, 2018 Author Share 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 Link to comment
Recommended Posts