I really don't have an Idea of how to add the function myself as you said. My core is not even C#, I'm just using it because of some restrictions to PHP. Sent from my BlackBerry® wireless handheld from Glo Mobile.
-----Original Message----- From: gonzalo diethelm <gdieth...@dcv.cl> Sender: zeromq-dev-boun...@lists.zeromq.org Date: Mon, 7 Nov 2011 17:18:30 To: ZeroMQ development list<zeromq-dev@lists.zeromq.org> Reply-To: ZeroMQ development list <zeromq-dev@lists.zeromq.org> Cc: Mikko Koppanen<mikko.koppa...@gmail.com> Subject: Re: [zeromq-dev] C# socket_close Syntax > > as far as I understand majority of the language with GC leave the > > closing to GC. Otherwise this would cause annoying issues where the > > object for the socket is valid but the underlying socket is invalid. > > There should be no need for explicit close as usually object going out > > of scope closes the socket. > > It would be more appropriate if the binding developers explain why they've > added the function, however, my guess is that it's used to close the socket > immediately, as opposed to leaving it to GC to clean it at some later time. > > Think of, for exmaple, bound ports. If you close the socket you want the port > to be available for new sockets immediately rather than lingering on. This is exactly why. Sometimes you cannot wait until GC triggers and must close your sockets before that happens. -- Gonzalo Diethelm DCV Chile _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev