In my application, While writing to socket the data is not written immediately. But if i use the flush() or waitForByteWritten(msec) then it get written. But here the only problem with flush() and waitforByteWritten() is its creating a performance bottleneck.
If i use it then performance is not so good. But if i doesn't use flush()/waitforBytesWritten() then data itself doesn't transfer immediately.
Is there any flag or something so that data can be written as the data is written to buffer.