X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fsocket.h;h=4a91404e52419a6291de5609e95e94006830c0f3;hb=7b08be5752bb91d495f324f97b346976d669ad90;hp=c7b87d583b862984f78ca9750681ebad69961493;hpb=fa3e1d5d4d803840b6bf06d9116353fab55fc686;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/socket.h b/include/socket.h index c7b87d583..4a91404e5 100644 --- a/include/socket.h +++ b/include/socket.h @@ -143,6 +143,9 @@ namespace irc */ CoreExport int OpenTCPSocket(const char* addr, int socktype = SOCK_STREAM); + /** Return the size of the structure for syscall passing */ + CoreExport int sa_size(irc::sockets::sockaddrs& sa); + /** Convert an address-port pair into a binary sockaddr * @param addr The IP address, IPv4 or IPv6 * @param port The port, 0 for unspecified