1 /* class: java/net/SocketOutputStream */
4 * Class: java/net/SocketOutputStream
9 Java_java_net_SocketOutputStream_init (JNIEnv *env )
12 log_text("Java_java_net_SocketOutputStream_init called");
16 * Class: java/net/SocketOutputStream
20 JNIEXPORT void JNICALL
21 Java_java_net_SocketOutputStream_socketWrite (JNIEnv *env, struct java_net_SocketOutputStream* this, java_bytearray* buf, s4 offset, s4 len)
26 log_text("Java_java_net_SocketOutputStream_socketWrite called");
29 assert(blockInts == 0);
32 if (this->impl->fd->fd < 0) {
33 /* exceptionptr = native_new_and_init (class_java_io_IOException); */
36 r = threadedWrite(this->impl->fd->fd, &buf->data[offset], len);
38 exceptionptr = native_new_and_init (class_java_io_IOException);
44 assert(blockInts == 0);