c++ - Suppress "Operation not permitted" error from socket -


i have small utility application handles sockets, both tcp , udp. occasionally, error "operation not permitted" printed stderr. issues is, handle errors based on return codes of socket functions (and errno), , don't print anything. thus, message must coming 1 of socket calls. not sure one, message occurs infrequently, has been difficult debug, think either coming socket or sendto.

is there way suppress messages being printed? can handle errors myself, not need system doing uncontrolled on behalf.

note, linux application.

thanks help.

are using library on top of sockets api? functions used work sockets not supposed print stderr. i'd suggest using strace and/or ltrace check message originates in first place.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -