Fixed socktype bug in sendreq.