Lines Matching refs:tcpip_buffer
652 CRTCPIPBuffer *tcpip_buffer;
655 tcpip_buffer = (CRTCPIPBuffer *)(*bufp) - 1;
657 CRASSERT( tcpip_buffer->magic == CR_TCPIP_BUFFER_MAGIC );
673 crBufferPoolPush(cr_tcpip.bufpool, tcpip_buffer, tcpip_buffer->allocated);
738 CRTCPIPBuffer *tcpip_buffer = (CRTCPIPBuffer *) buf - 1;
740 CRASSERT( tcpip_buffer->magic == CR_TCPIP_BUFFER_MAGIC );
741 conn->recv_credits += tcpip_buffer->len;
743 switch ( tcpip_buffer->kind )
753 crBufferPoolPush( cr_tcpip.bufpool, tcpip_buffer, tcpip_buffer->allocated );
761 crFree( tcpip_buffer );
765 crError( "Weird buffer kind trying to free in crTCPIPFree: %d", tcpip_buffer->kind );
819 CRTCPIPBuffer *tcpip_buffer;
860 tcpip_buffer = (CRTCPIPBuffer *) crTCPIPAlloc( conn ) - 1;
865 tcpip_buffer = (CRTCPIPBuffer *) crAlloc( sizeof(*tcpip_buffer) + len );
866 tcpip_buffer->magic = CR_TCPIP_BUFFER_MAGIC;
867 tcpip_buffer->kind = CRTCPIPMemoryBig;
868 tcpip_buffer->pad = 0;
871 tcpip_buffer->len = len;
886 if ( __tcpip_read_exact( sock, tcpip_buffer + 1, total) <= 0 )
888 crWarning( "Bad juju: %d %d on socket 0x%x", tcpip_buffer->allocated,
890 crFree( tcpip_buffer );
898 msg = (CRMessage *) (tcpip_buffer + 1);
914 if ( __tcpip_read_exact( sock, tcpip_buffer + 1 + total, leftover-handled) <= 0 )
916 crWarning( "Bad juju: %d %d", tcpip_buffer->allocated, leftover-handled);
917 crFree( tcpip_buffer );
939 crTCPIPFree( conn, tcpip_buffer + 1 );