1# 2# Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) 3# 4# Distributed under the Boost Software License, Version 1.0. (See accompanying 5# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6# 7 8import os ; 9 10lib socket ; # SOLARIS 11lib nsl ; # SOLARIS 12lib ws2_32 ; # NT 13lib mswsock ; # NT 14lib ipv6 ; # HPUX 15lib network ; # HAIKU 16 17if [ os.name ] = NT 18{ 19 lib ssl : : <name>ssleay32 ; 20 lib crypto : : <name>libeay32 ; 21} 22else 23{ 24 lib ssl ; 25 lib crypto ; 26} 27 28project 29 : requirements 30 <library>/boost/system//boost_system 31 <library>/boost/chrono//boost_chrono 32 <define>BOOST_ALL_NO_LIB=1 33 <threading>multi 34 <target-os>solaris:<library>socket 35 <target-os>solaris:<library>nsl 36 <target-os>windows:<define>_WIN32_WINNT=0x0501 37 <target-os>windows,<toolset>gcc:<library>ws2_32 38 <target-os>windows,<toolset>gcc:<library>mswsock 39 <target-os>windows,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS 40 <target-os>hpux,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED 41 <target-os>hpux:<library>ipv6 42 <target-os>haiku:<library>network 43 <library>ssl 44 <library>crypto 45 ; 46 47exe client : client.cpp ; 48exe server : server.cpp ; 49