On Sunday, 14 February 2016 at 08:19:16 UTC, Ali Çehreli wrote:
On 02/14/2016 12:03 AM, Beginner-8 wrote:
Uh, wait! Forgot about that Socket calls .close() in its dtor
Try duplicating the socket handle before handing it over to
Socket (not compiled nor tested):
import core.sys.posix.unistd;
On 02/14/2016 12:03 AM, Beginner-8 wrote:
Uh, wait! Forgot about that Socket calls .close() in its dtor
Try duplicating the socket handle before handing it over to Socket (not
compiled nor tested):
import core.sys.posix.unistd;
Socket(dup(myHandle))
I think socket handles are duplicata
Uh, wait! Forgot about that Socket calls .close() in its dtor
On Sunday, 14 February 2016 at 07:33:11 UTC, Ali Çehreli wrote:
Maybe another option is to duplicate the socket handle
Sure!
Nevertheless, it is need method for socket_t duplication.
Something like:
class Socket
{
...
static Socket dup(socket_t)
...
}
before giving it to Socket but I am f
On 02/13/2016 10:38 PM, Beginner-8 wrote:
On Sunday, 14 February 2016 at 06:10:04 UTC, Beginner-8 wrote:
On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:
Unless you explicitly call "close" method of Socket object, its
descriptor will
stay allocated for your process/program.
Hmm, I am
(I went to make a patch to Phobos)
On Sunday, 14 February 2016 at 06:10:04 UTC, Beginner-8 wrote:
On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:
Unless you explicitly call "close" method of Socket object,
its descriptor will
stay allocated for your process/program.
Hmm, I am seen what Socket dtor contains close() to
On Sunday, 14 February 2016 at 06:01:11 UTC, tcak wrote:
Unless you explicitly call "close" method of Socket object, its
descriptor will
stay allocated for your process/program.
Hmm, I am seen what Socket dtor contains close() too:
https://github.com/D-Programming-Language/phobos/blob/master
On Sunday, 14 February 2016 at 04:13:12 UTC, Beginner-8 wrote:
Hi!
Anyone seen Socket constructor which uses already available
socket of socket_t type?
I am need to use already connected socket imported from C
library without closing them after using.
One of the constructors of class Socke
On Sunday, 14 February 2016 at 04:13:12 UTC, Beginner-8 wrote:
Anyone seen Socket constructor which uses already available
socket of socket_t type?
See the list on my unofficial docs here:
http://dpldocs.info/experimental-docs/std.socket.Socket.html
This one does it:
http://dpldocs.info/exp
Hi!
Anyone seen Socket constructor which uses already available
socket of socket_t type?
I am need to use already connected socket imported from C library
without closing them after using.
11 matches
Mail list logo