...
This commit is contained in:
parent
35bd66f21f
commit
8ab76adbe6
146 changed files with 101 additions and 40 deletions
|
|
@ -0,0 +1,37 @@
|
|||
````go
|
||||
package main
|
||||
|
||||
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
url := "https://www.zauberturm.de/Downloads/demo.txt"
|
||||
// Make a GET request to the URL
|
||||
response, err := http.Get(url)
|
||||
if err != nil {
|
||||
fmt.Println("Error making GET request:", err)
|
||||
return
|
||||
}
|
||||
defer response.Body.Close()
|
||||
// Check if the response status code is OK (200)
|
||||
if response.StatusCode != http.StatusOK {
|
||||
fmt.Println("Error: Unexpected status code", response.StatusCode)
|
||||
return
|
||||
}
|
||||
|
||||
// Read the content of the response body
|
||||
body, err := ioutil.ReadAll(response.Body)
|
||||
if err != nil {
|
||||
fmt.Println("Error reading response body:", err)
|
||||
return
|
||||
}
|
||||
|
||||
// Display the content of the downloaded file
|
||||
fmt.Println(string(body))
|
||||
}
|
||||
```
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
```python
|
||||
print(x)
|
||||
```
|
||||
|
||||
Master Server
|
||||
|
||||
Scene Server
|
||||
Default behaviour: Load master_host from URL
|
||||
https://www.zauberturm.de/awa/config/server_ip.txt
|
||||
-client_port=
|
||||
-master_host=
|
||||
Client
|
||||
Editor/Run
|
||||
Main Run Args: -master_host=192.168.178.20
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
````bash
|
||||
ls ~/.local/share/godot/app_userdata/
|
||||
'AWA - Leistungstest 3- Multiplayer' MasterServer SceneServer
|
||||
````
|
||||
Loading…
Add table
Add a link
Reference in a new issue