Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Ben Kloosterman
e: [zeromq-dev] C# socket_close Syntax I don't believe this is correct, the correct way to close a Socket in C# is to Dispose() it. On Mon, Nov 7, 2011 at 2:22 AM, Martin Sustrik wrote: > On 11/07/2011 11:17 AM, Ilja Golshtein wrote: >> 07.11.2011, 13:54, "Martin Sust

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Paul Betts
I don't believe this is correct, the correct way to close a Socket in C# is to Dispose() it. On Mon, Nov 7, 2011 at 2:22 AM, Martin Sustrik wrote: > On 11/07/2011 11:17 AM, Ilja Golshtein wrote: >> 07.11.2011, 13:54, "Martin Sustrik": >>> However, adding the functionality is easy (have a look at

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread lawillas4ever
q-dev-boun...@lists.zeromq.org Date: Mon, 7 Nov 2011 17:18:30 To: ZeroMQ development list Reply-To: ZeroMQ development list Cc: Mikko Koppanen Subject: Re: [zeromq-dev] C# socket_close Syntax > > as far as I understand majority of the language with GC leave the > > closing to GC. Othe

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread gonzalo diethelm
> > 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 sc

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Ilja Golshtein
07.11.2011, 14:46, "Martin Sustrik" : > 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. Sounds reasonable. Coming back to topicstarter's issue, I doubt the issue is caused by GC. If I am wrong an

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Martin Sustrik
On 11/07/2011 11:42 AM, Mikko Koppanen wrote: > 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 clos

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Mikko Koppanen
On Mon, Nov 7, 2011 at 10:22 AM, Martin Sustrik wrote: > Other bindings for languages with GCs do the same thing. See, for > exmaple, here; > > https://github.com/zeromq/jzmq/blob/master/src/org/zeromq/ZMQ.java#L334 > Hi, as far as I understand majority of the language with GC leave the closing

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Martin Sustrik
On 11/07/2011 11:17 AM, Ilja Golshtein wrote: > 07.11.2011, 13:54, "Martin Sustrik": >> However, adding the functionality is easy (have a look at other language >> bindings for inspiration), so I suggest you add the function yourself >> and ask clrzmq2 maintainers to merge it into the project. > >

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Ilja Golshtein
07.11.2011, 13:54, "Martin Sustrik" : > However, adding the functionality is easy (have a look at other language > bindings for inspiration), so I suggest you add the function yourself > and ask clrzmq2 maintainers to merge it into the project. Not sure such an attempt to bypass GC is natural from

Re: [zeromq-dev] C# socket_close Syntax

2011-11-07 Thread Martin Sustrik
On 11/06/2011 09:50 PM, lanre lawal wrote: > I'm sure this question is pretty trivial for the mailing list but I've > searched everywhere in the documentation and examples section. I can't > find the Syntax for closing a socket anywhere. Also is there a full > documentation for the C# language tha

[zeromq-dev] C# socket_close Syntax

2011-11-06 Thread lanre lawal
Hi Guys,     I'm sure this question is pretty trivial for the mailing list but I've searched everywhere in the documentation and examples section. I can't find the Syntax for closing a socket anywhere. Also is there a full documentation for the C# language that contains all the method definition