c++ - Is there any way the openldap allows us to set a DSCP (QOS(IP_TOS) in IP layer) values? -


my application uses openldap stack send request ldap server, want set dscp (ip_tos) values there way this? in advance

sure, use setsockopt on ldap sockets:

#include <sys/types.h> #include <sys/socket.h>  int tos = iptos_lowdelay;  if (setsockopt(sock, ipproto_ip, ip_tos, (char *) &tos, sizeof(tos)) < 0 ) {        printf("failed setting tos on socket");        abort();  } 

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 -