Parcourir la source

Update networking.md

Björn Ritzl il y a 5 ans
Parent
commit
d9035751d3
1 fichiers modifiés avec 21 ajouts et 13 suppressions
  1. 21 13
      docs/en/manuals/networking.md

+ 21 - 13
docs/en/manuals/networking.md

@@ -5,7 +5,11 @@ brief: This manual explains how to connect to remote servers and perform other k
 
 # Networking
 
-It is not uncommon for games to have some kind of connection to a backend service, perhaps to post scores, handle match making or store saved games in the cloud. Many games also have peer to peer connections where game clients communicate directly with each other, without involvement of a central server.
+It is not uncommon for games to have some kind of connection to a backend service, perhaps to post scores, handle match making or store saved games in the cloud. Many games also have peer to peer connections where game clients communicate directly with each other, without involvement of a central server. Network connections and the exchange of data can be made using several different protocols and standards:
+
+* [HTTP Requests](#http-requests)
+* [Socket connections](#socket-connections)
+* [WebSocket connections](#websocket-connections)
 
 
 ## HTTP requests
@@ -22,18 +26,6 @@ http.request("https://www.defold.com", "GET", handle_response)
 
 This will make an HTTP GET request to https://www.defold.com. The function is asynchronous and will not block while making the request. Once the request has been made and a server has sent a response it will invoke/call the provided callback function. The callback function will receive the full server response, including status code and response headers. It is also possible to make HTTP POST requests to pass data to the server and to specify request headers. Refer to the [API reference](/ref/http/) to learn more.
 
-Using HTTP requests allows you to connect to and interact with thousands of different services on the internet, but in most cases there's more to it than simply making an HTTP request. You usually need to use some kind of authenticate, the request data may need to be formatted in a certain way and the response may need to be parsed before it can be used. This can of course be done manually by you but there are also extensions and libraries to take care of this sort of thing for you. Below you'll find a list of some extensions that can be used to more easily interact with specific backend services:
-
-* [AWS SDK](https://github.com/britzl/aws-sdk-lua) - Use Amazon Web Services from within your game
-* [Colyseus](https://github.com/colyseus/colyseus-defold) - Multiplayer game client
-* [Firebase Analytics](https://github.com/defold/extension-firebase-analytics) - Add Firebase Analytics to your game
-* [Google Analytics](https://github.com/britzl/defold-googleanalytics) - Add Google Analytics to your game
-* [Google Play Game Services](https://github.com/defold/extension-gpgs) - Use Google Play Game Services to authenticate and use cloud save in your game
-* [PlayFab](https://github.com/PlayFab/LuaSdk) - Add authentication, matchmaking, analytics, cloud save and more to your game
-* [Steamworks](https://github.com/britzl/steamworks-defold/) - Add Steam support to your game
-
-Check the [Asset Portal](https://www.defold.com/assets/) for even more extensions!
-
 
 ## Socket connections
 
@@ -53,3 +45,19 @@ This will create a TCP socket, connect it to IP 127.0.0.1 (localhost) and port 8
 ## WebSocket connections
 
 Defold doesn't contain any out of the box solution for creating WebSocket connections. For WebSocket connectivity it is recommended to use the [Defold-WebSocket extension](https://github.com/britzl/defold-websocket).
+
+
+# Game services
+
+Using HTTP requests and socket connections allows you to connect to and interact with thousands of different services on the internet, but in most cases there's more to it than simply making an HTTP request. You usually need to use some kind of authentication, the request data may need to be formatted in a certain way and the response may need to be parsed before it can be used. This can of course be done manually by you but there are also extensions and libraries to take care of this sort of thing for you. Below you'll find a list of some extensions that can be used to more easily interact with specific backend services:
+
+* [AWS SDK](https://github.com/britzl/aws-sdk-lua) - Use Amazon Web Services from within your game
+* [Colyseus](https://github.com/colyseus/colyseus-defold) - Multiplayer game client
+* [Firebase Analytics](https://github.com/defold/extension-firebase-analytics) - Add Firebase Analytics to your game
+* [Game Analytics](https://gameanalytics.com/docs/item/defold-sdk) - Add GameAnalytics to your game
+* [Google Analytics](https://github.com/britzl/defold-googleanalytics) - Add Google Analytics to your game
+* [Google Play Game Services](https://github.com/defold/extension-gpgs) - Use Google Play Game Services to authenticate and use cloud save in your game
+* [PlayFab](https://github.com/PlayFab/LuaSdk) - Add authentication, matchmaking, analytics, cloud save and more to your game
+* [Steamworks](https://github.com/britzl/steamworks-defold/) - Add Steam support to your game
+
+Check the [Asset Portal](https://www.defold.com/assets/) for even more extensions!