// Copyright (c) 2001 David Muse // See the file COPYING for more information #include #include #include #ifdef RUDIMENTS_NAMESPACE using namespace rudiments; #endif int main(int argc, const char **argv) { unixclientsocket clnt; clnt.connect("/tmp/handoff.socket",-1,-1,0,1); for (;;) { int descriptor; clnt.receiveFileDescriptor(&descriptor); filedescriptor clientsock; clientsock.setFileDescriptor(descriptor); clientsock.write("hello"); clientsock.close(); } }