javaextensions/datagram/datagram/src/nativedatagramconnection.cpp
branchRCL_3
changeset 25 ae942d28ec0e
parent 23 e5618cc85d74
child 26 2455ef1f5bbc
equal deleted inserted replaced
24:6c158198356e 25:ae942d28ec0e
   131     if (writeBuffer == NULL)
   131     if (writeBuffer == NULL)
   132     {
   132     {
   133         writeBuffer = new char[requiredNativeBufferLength + 1];
   133         writeBuffer = new char[requiredNativeBufferLength + 1];
   134     }
   134     }
   135     /* Copy the data to be written from java buffer to the native buffer.  */
   135     /* Copy the data to be written from java buffer to the native buffer.  */
       
   136     if (writeBuffer != NULL)
   136     JNIArrayUtils::CopyToNative(aJni, aJavaBuffer, aOffset,
   137     JNIArrayUtils::CopyToNative(aJni, aJavaBuffer, aOffset,
   137                                 requiredNativeBufferLength, writeBuffer);
   138                                 requiredNativeBufferLength, writeBuffer);
   138 
   139 
   139     if (!inet_aton(aDestAddr, &addr.sin_addr))
   140     if (!inet_aton(aDestAddr, &addr.sin_addr))
   140     {
   141     {