rpctrans.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2014-2/
  • rpc/
  • rpctrans.h
  • View
  • Commits
  • Open Download .zip Download (791 B)
/*
 * Copyright 1995, 1996 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

/*
 * rpctrans.h - buffer I/O to transport
 *
 * Description:
 *
 *	This is just a layer on NetBuffer, which provides for buffering
 *	of a raw NetTransport connection.  RpcTransport just does 
 *	encapsulation of sized data blocks, ensuring that the exact 
 *	buffer sent is recreated in the receiver.
 */

class RpcTransport : public NetBuffer {

    public:
			RpcTransport( NetTransport *t ) : NetBuffer( t ) {}

	void		Send( StrPtr *s, Error *re, Error *se );
	int		Receive( StrBuf *s, Error *re, Error *se );

	// For flow control, himark must include the few extra
	// bytes RpcTransport adds to every message.

	int		SendOverhead() { return 5; }

} ;
# Change User Description Committed
#1 15903 Matt Attaway Everything should be happy now between the Workshop and the depot paths
//guest/perforce_software/p4/2014_2/rpc/rpctrans.h
#1 15901 Matt Attaway Clean up code to fit modern Workshop naming standards
//guest/perforce_software/p4/2014.2/rpc/rpctrans.h
#1 12189 Matt Attaway Initial (and much belated) drop of 2014.2 p4 source code