struct socket *sk;
sk = netsockpipe();
- socksetdebug(sk, 2, "trpipe");
sk->data = peer;
sk->readcb = (void (*)(struct socket *, void *))trpiperead;
sk->writecb = (void (*)(struct socket *, void *))trpipewrite;
new = smalloc(sizeof(*new));
memset(new, 0, sizeof(*new));
new->transfer = NULL;
- socksetdebug(sk, 2, "peersock");
getsock(sk);
new->sk = sk;
if(confgetint("dc", "dcppemu"))
{
if(transfer->localend != NULL)
putsock(transfer->localend);
- socksetdebug(sk, 2, "localend");
getsock(transfer->localend = sk);
sk->data = transfer;
sk->readcb = (void (*)(struct socket *, void *))localread;