Jump to content

Using C++ API with a stream depot

c++api stream

  • Please log in to reply
3 replies to this topic

#1 ivo



  • Members
  • Pip
  • 6 posts

Posted 08 March 2013 - 02:35 PM


I am using the C++ api to work with Perforce. All is working well when working with a 'local' type depot. When working with a 'stream' type depot I get this error message: "Client ... requires an application that can fully support streams".

Api version is 2011.1 (but same error with 2012.2 api). Client is on Windows 7, 32 bit. Server is Linux 64 bit, 2012.1

Any ideas what may be causing this ?

#2 P4Matt


    Advanced Member

  • Members
  • PipPipPip
  • 1383 posts

Posted 12 March 2013 - 09:17 PM

There's a magic word we neglected to doc. Add this:

client.SetVar( "enableStreams" );

After seeing your post the devs fixed the relnotes so future generations won't wonder why they can't talk to streams.

#3 ivo



  • Members
  • Pip
  • 6 posts

Posted 13 March 2013 - 07:08 AM

Ah. that explains a lot. Although I had to do this:

client.SetProtocol("enableStreams", "");

to make it work. But maybe that is because I'm using the 2011.1 api.


#4 j.mueller



  • Members
  • Pip
  • 2 posts

Posted 24 September 2015 - 11:18 AM

Ivos solution still seems to be valid for API 2015.1 using server P4D/LINUX26X86_64/2014.2/978861 (2014/12/19).
Although the knowledge base also suggests calling SetVar(), this didn't work for me either.
Would be great to see this magic words documented in the API manual.

Also tagged with one or more of these keywords: c++api, stream

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users