File indexing completed on 2024-05-19 04:06:39

0001 /*
0002  * Copyright (C) 2005,2006  Justin Karneges
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the
0006  * "Software"), to deal in the Software without restriction, including
0007  * without limitation the rights to use, copy, modify, merge, publish,
0008  * distribute, sublicense, and/or sell copies of the Software, and to
0009  * permit persons to whom the Software is furnished to do so, subject to
0010  * the following conditions:
0011  *
0012  * The above copyright notice and this permission notice shall be included
0013  * in all copies or substantial portions of the Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0016  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0017  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0018  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
0019  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
0020  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
0021  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0022  */
0023 
0024 #ifndef QJDNS_SOCK_H
0025 #define QJDNS_SOCK_H
0026 
0027 bool qjdns_sock_setMulticast4(int s, unsigned long int addr, int *errorCode);
0028 bool qjdns_sock_setMulticast6(int s, unsigned char *addr, int *errorCode);
0029 bool qjdns_sock_setTTL4(int s, int ttl);
0030 bool qjdns_sock_setTTL6(int s, int ttl);
0031 bool qjdns_sock_setIPv6Only(int s);
0032 
0033 #endif