home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
kaffe-0.5p4-src.tgz
/
tar.out
/
contrib
/
kaffe
/
lib
/
net
/
java.net
/
SocketOutputStream.c
< prev
Wrap
C/C++ Source or Header
|
1996-09-28
|
925b
|
32 lines
/*
* java.net.SocketOutputStream.c
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
*/
#include <stdio.h>
#include <native.h>
#include "../native/java.io.stubs/FileDescriptor.h"
#include "../native/java.io.stubs/FileOutputStream.h"
#include "java.net.stubs/SocketImpl.h"
#include "java.net.stubs/SocketOutputStream.h"
#include "nets.h"
#include "kthread.h"
void
java_net_SocketOutputStream_socketWrite(struct Hjava_net_SocketOutputStream* this, HArrayOfByte* buf, jint offset, jint len)
{
int r;
r = threadedWrite(unhand(unhand(unhand(this)->impl)->fd)->fd, &unhand(buf)->body[offset], len);
if (r < 0) {
SignalError(0, "java.io.IOException", SYS_ERROR);
}
}