Skip to content

Commit

Permalink
Change the line to modify in Quickstart: Edit a Game Server (#3844)
Browse files Browse the repository at this point in the history
Co-authored-by: Yi Zhong <[email protected]>
  • Loading branch information
peterzhongyi and Yi Zhong authored May 31, 2024
1 parent 80dd2ea commit dfa414e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ Also complete the "Enabling creation of RBAC resources" and "Installing Agones"
### Modify the simple-game-server example source code
Modify the {{< ghlink href="examples/simple-game-server/main.go" >}}main.go{{< /ghlink >}} file. For example:

Change the following line in `main.go`:
Change the following line in function `udpReadWriteLoop` in file `main.go`:

From:
```go
response = "ACK TCP: " + response + "\n"
response = "ACK: " + response + "\n"
```

To:
```go
response = "ACK TCP Echo Says: " + response + "\n"
response = "ACK Echo Says: " + response + "\n"
```

### Build Server
Expand Down Expand Up @@ -110,7 +110,7 @@ If you do not have netcat installed
```
nc -u {IP} {PORT}
Hello World!
ACK TCP: Echo says Hello World!
ACK Echo Says: Hello World!
EXIT
```

Expand Down

0 comments on commit dfa414e

Please sign in to comment.