update comments
This commit is contained in:
7
.idea/workspace.xml
generated
7
.idea/workspace.xml
generated
@@ -2,12 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/tests/controller/main.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/api/proto/control.proto" beforeDir="false" afterPath="$PROJECT_DIR$/api/proto/control.proto" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controller.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/go.mod" beforeDir="false" afterPath="$PROJECT_DIR$/go.mod" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/go.sum" beforeDir="false" afterPath="$PROJECT_DIR$/go.sum" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@@ -22,7 +17,7 @@
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="GOROOT" url="file:///usr/local/go" />
|
||||
<component name="GOROOT" url="file://$PROJECT_DIR$/../../../../../Program Files/Go" />
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
|
||||
@@ -26,12 +26,6 @@ func NewController(port int) (controller *Controller, err error) {
|
||||
// server side it listens for new gRPC connections, when a connection is made by a client the client can tell it to
|
||||
// start a new iperf server instance. It will start a instance on an unused port and return the port number to the
|
||||
// client. This allows the entire iperf setup and session to be performed from the client side.
|
||||
//
|
||||
// CLIENT SERVER
|
||||
// connect to grpc ---> accept grpc connection
|
||||
// call StartServer() ---> find unused port
|
||||
// start iperf server on port
|
||||
// get server port info <--- return port information to client
|
||||
type Controller struct {
|
||||
api.UnimplementedCommandServer
|
||||
Port int
|
||||
|
||||
Reference in New Issue
Block a user