sorry. my mistake. I added "\n" not "\0".
Thank you. ---------- Forwarded message ---------- From: Sungwon Jung <[EMAIL PROTECTED]> Date: Sep 17, 2007 5:10 PM Subject: text based protocol To: [email protected] Hello. I'm using MINA 1.1.2. problem is server cannot receive client's message. client code is below. --- char sBufSend[ 512 ] = "0123456789\0"; int iSend = 0; iSend = send( scHost, sBufSend, strlen( sBufSend ), 0 ); printf( "%d\n", iSend ); -- server use cfg.getFilterChain().addLast( "codec", new ProtocolCodecFilter( new TextLineCodecFactory( Charset.forName( "ASCII" ) ) ) ); but server cannot receive "0123456789" that client sent message. what's the reason? Thank you.
