1

My end goal is to create a perforce server in which I can log in, create a workspace, and checkin/checkout. I am going through the p4 api and trying to figure out how to do this, and I am unsure on how to make the perforce server. There is a Server class, which seems to be the right thing to use since it allows me to create a Connection class. On the other hand, looking down the road it seems I will be wanting to use P4Command and that takes a P4Server as an argument. Any guidance about what steps to take is much appreciated! Here the snippet I am looking at right now. Are my two servers completely separate?

ServerAddress adr = new ServerAddress(uri);
Server server = new Server(adr);
P4Server p4server = new P4Server(uri, user1, password, ws_client);
Repository rep = new Repository(server);
Connection con = rep.Connection;
4

1 回答 1

0

听起来您想创建自己的 Perforce 服务器。P4API.NET 库不是用于创建服务器,而是用于连接到现有的 Perforce 服务器。

API 本身对我来说似乎有些令人费解和困惑,那些 Server 和 P4Server 类是什么。

于 2015-07-23T01:14:13.217 回答