350 |
assert((*env)!=NULL); |
assert((*env)!=NULL); |
351 |
|
|
352 |
netAddress = _javanet_get_netaddr(env, addr); |
netAddress = _javanet_get_netaddr(env, addr); |
|
|
|
353 |
if ((*env)->ExceptionOccurred(env)) |
if ((*env)->ExceptionOccurred(env)) |
354 |
{ JCL_ThrowException(env, IO_EXCEPTION, "Internal error"); return; } |
{ JCL_ThrowException(env, IO_EXCEPTION, "Internal error: get network address"); return; } |
355 |
|
|
356 |
DBG("PlainDatagramSocketImpl.sendto(): have addr\n"); |
DBG("PlainDatagramSocketImpl.sendto(): have addr\n"); |
357 |
|
|
358 |
_javanet_sendto(env, this, buf, 0, len, netAddress, port); |
_javanet_sendto(env, this, buf, 0, len, netAddress, port); |
|
|
|
359 |
if ((*env)->ExceptionOccurred(env)) |
if ((*env)->ExceptionOccurred(env)) |
360 |
{ JCL_ThrowException(env, IO_EXCEPTION, "Internal error"); return; } |
{ JCL_ThrowException(env, IO_EXCEPTION, "Internal error: send data"); return; } |
361 |
|
|
362 |
DBG("PlainDatagramSocketImpl.sendto(): finished\n"); |
DBG("PlainDatagramSocketImpl.sendto(): finished\n"); |
363 |
#else /* not WITHOUT_NETWORK */ |
#else /* not WITHOUT_NETWORK */ |