Subversion Repositories planix.SVN

Rev

Blame | Last modification | View Log | RSS feed

#include <stdio.h>

#include <sys/socket.h> 

        
int
fs_sock_send(int fd, void *pkt, int l)
{
//      printf ("_fssend entered\n");
//      CFsys *fs;
        int n;

//      printf ("io write\n");
//      n = iowrite(fs->iosend, fs->fd, pkt, GBIT32((uchar*)pkt));
        n = send (fd, pkt, l,0);
        printf ("io wrote %d\n",n);
//      if(n < 0 && eofkill9pclient)
//              threadexitsall(nil);
        return n;
}

int
fs_sock_recv(int fd, void *pkt, int l)
{
        printf ("_fsirecv entered\n");
//      CFsys *fs;
        int n;

        printf ("io read\n");
//      n = iowrite(fs->iosend, fs->fd, pkt, GBIT32((uchar*)pkt));
        n = recv (fd, pkt, l,0);
        printf ("io read %d\n",n);
//      if(n < 0 && eofkill9pclient)
//              threadexitsall(nil);
        return n;
}