From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 6 Mar 2019 17:28:15 +0300 From: Konstantin Osipov Subject: Re: [tarantool-patches] [PATCH 1/1] sio: implement getsockname wrapper Message-ID: <20190306142815.GA5263@chai> References: <7405ac9cec20bd309712418674694a66ea31590b.1551821931.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7405ac9cec20bd309712418674694a66ea31590b.1551821931.git.v.shpilevoy@tarantool.org> To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com List-ID: * Vladislav Shpilevoy [19/03/06 10:25]: > SWIM wants to allow to bind to zero ports so as the kernel could > choose any free port automatically. It is needed mainly for > tests. > > Zero port means that a real port is known only after bind() has > called, and getsockname() should be used to get it. SWIM uses sio > library for such lowlevel API. This is why that function is added > to sio. > OK to push. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov