javaextensions/datagram/datagram/src/nativedatagramconnection.cpp
branchRCL_3
changeset 66 2455ef1f5bbc
parent 65 ae942d28ec0e
child 71 d5e927d5853b
equal deleted inserted replaced
65:ae942d28ec0e 66:2455ef1f5bbc
   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)
       
   137     JNIArrayUtils::CopyToNative(aJni, aJavaBuffer, aOffset,
   136     JNIArrayUtils::CopyToNative(aJni, aJavaBuffer, aOffset,
   138                                 requiredNativeBufferLength, writeBuffer);
   137                                 requiredNativeBufferLength, writeBuffer);
   139 
   138 
   140     if (!inet_aton(aDestAddr, &addr.sin_addr))
   139     if (!inet_aton(aDestAddr, &addr.sin_addr))
   141     {
   140     {