Mina.NET icon indicating copy to clipboard operation
Mina.NET copied to clipboard

.NET implementation of Apache MINA

Results 12 Mina.NET issues
Sort by recently updated
recently updated
newest added

Add .NET Core support;

Hi. it is better to update to Mina 2.1.5 and use .net 6 for more performance. can anybody update it?

Do you plan to implement the existing Apache CompresionFilter? I tried to do, but buffers confuse me

hi do you have any example of how to connect client to server using proxy server thanks

在工作中遇到串口网口通讯统一框架,有没有计划支持.Net core

Hi,你好, 我们在使用中发现,如果AsyncDatagramConnector的实例对象调用Connect连接了一个广播地址,之后就无法收取不是从这个地址发出的UDP广播数据。我们尝试了Framework自带的UDPClient,发现不做连接,直接广播,收发一切正常。但是MINA的设计架构似乎一定要先有连接拿到ISession才能做通讯,哪怕是UDP...,因为我们整个系统基于.Net Framework4.0开发,而且必须支持XP,所以我们没法选择DotNetty,貌似Netty是不做连接的。计划用MINA.NET来改写之前的通讯模块,但是现在卡壳这里了,TCP工作的很好,但我们设备检测必须要用UDP,而广播检测消息之后,就无法收到设备的回复了。。。不知能否给些建议来解决这个问题?

我发现有个 Broadcast方法, IoConnector connector = new AsyncDatagramConnector(); IoBuffer buffer = IoBuffer.Allocate(64); buffer.Put(data); buffer.Flip(); connector.Broadcast(buffer); 马上有个异常报错了,Exception:以一种访问权限不允许的方式做了一个访问套接字的尝试。 增加 Socket.EnableBroadcast = true; 就没有异常了 但是我自己写的socket广播,也没有去设置EnableBroadcast ,也没报错。 初略一看,还没发现具体原因是什么。。。。

init ``` _connector = new AsyncSocketConnector(); _connector.FilterChain.AddLast("codec", new ProtocolCodecFilter(new TextLineCodecFactory(Encoding.UTF8))); _connector.FilterChain.AddLast("logger", new Log4UnityFilter()); _connector.FilterChain.AddLast("json", new JsonFilter()); _connector.FilterChain.AddLast("error", new ErrorMessageFilter()); _connector.FilterChain.AddLast("identity", new IdentityFilter(deviceType)); _connector.Handler = new SyncSendReceiveHandler(); ``` Filter ``` public...

服务端使用AsyncSocketAcceptor监听端口时,在IMessageDecoder.Decode方法中出现 "Mina.Core.Buffer.BufferUnderflowException: 引发类型为“Mina.Core.Buffer.BufferUnderflowException”的异常。 在 Mina.Core.Buffer.Buffer.NextGetIndex(Int32 nb) 在 Mina.Core.Buffer.AbstractIoBuffer.GetInt32() 。"的错误,该错误发生时有用catch{}try{}捕捉处理该异常。但是新的客户端请求连接的时候服务端无法监听到,客户端返回"System.Net.SocketException(0x80004005):由于目标计算机积极拒绝,无法连接。"的错误。 观察服务端端口状态为Listening,重启服务端后客户端即可正常连接服务端。 请问该如何解决这个问题?谢谢!

First day try Mina.NET , try Udp Client Demo. But throw exception: ![mina-udpclient](https://cloud.githubusercontent.com/assets/9330555/12607511/779b7bf0-c510-11e5-8609-046e3f0049c5.png) I found 62line in code = "read = socket.EndReceiveFrom(ar, ref remoteEP);" ``` private void ReceiveCallback(IAsyncResult ar) {...