I want to know is there any API/system call which i can use to just read the input stream without removing the data read from input stream?
I am looking for something like peek() function of arduino. I want to use it for some socket programming (RAW HCI socket).