mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <org.apache.mina.u...@io7m.com>
Subject No output from simple UDP server?
Date Sun, 07 Oct 2012 12:19:58 GMT
Hello.

I'm attempting to write a tiny example server based on MemoryMonitor, but for
some reason, the server doesn't produce any output. The original MemoryMonitor
server does work correctly, so presumably there's something subtly wrong with
my program.

http://waste.io7m.com/2012/10/07/Client.java
http://waste.io7m.com/2012/10/07/Server.java

The client output is:

Connecting
session-created: (0x00000001: nio datagram, client, /127.0.0.1:33868 => /127.0.0.1:2300)
Connected
Session (0x00000001: nio datagram, client, /127.0.0.1:33868 => /127.0.0.1:2300)
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]
Writing HeapBuffer[pos=0 lim=8 cap=8: 00 00 00 02 00 00 00 03]

The server output is:

Binding...
Bound

I'd expect to see at least something from the server on session creation or message
receipt.

Mime
View raw message