summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Classes
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-02-13 23:18:22 +0100
committerMattes D <github@xoft.cz>2015-02-13 23:18:22 +0100
commit557adf3be944b8a91c768ee85241b7c8bc57c0a6 (patch)
treea18f511a1326b15f9d78638397fb4d14c72c8877 /MCServer/Plugins/APIDump/Classes
parentExported cTCPLink:Close and :Shutdown() to Lua API. (diff)
downloadcuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.tar
cuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.tar.gz
cuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.tar.bz2
cuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.tar.lz
cuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.tar.xz
cuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.tar.zst
cuberite-557adf3be944b8a91c768ee85241b7c8bc57c0a6.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Classes')
-rw-r--r--MCServer/Plugins/APIDump/Classes/Network.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Classes/Network.lua b/MCServer/Plugins/APIDump/Classes/Network.lua
index 1dc0f3ae7..274c8d035 100644
--- a/MCServer/Plugins/APIDump/Classes/Network.lua
+++ b/MCServer/Plugins/APIDump/Classes/Network.lua
@@ -303,6 +303,7 @@ g_Server = nil
Send = { Params = "Data", Return = "", Notes = "Sends the data (raw string) to the remote peer. The data is sent asynchronously and there is no report on the success of the send operation, other than the connection being closed or reset by the underlying OS." },
Shutdown = { Params = "", Return = "", Notes = "Shuts the socket down for sending data. Notifies the remote peer that there will be no more data coming from us (TCP FIN). The data that is in flight will still be delivered. The underlying socket will be closed when the remote end shuts down as well, or after a timeout." },
StartTLSClient = { Params = "OwnCert, OwnPrivateKey, OwnPrivateKeyPassword", Return = "", Notes = "Starts a TLS handshake on the link, as a client side of the TLS. The Own___ parameters specify the client certificate and its corresponding private key and password; all three parameters are optional and no client certificate is presented to the remote peer if they are not used or all empty. Once the TLS handshake is started by this call, all incoming data is first decrypted before being sent to the OnReceivedData callback, and all outgoing data is queued until the TLS handshake completes, and then sent encrypted over the link." },
+ StartTLSServer = { Params = "Certificate, PrivateKey, PrivateKeyPassword, StartTLSData", Return = "", Notes = "Starts a TLS handshake on the link, as a server side of the TLS. The plugin needs to specify the server certificate and its corresponding private key and password. The StartTLSData can contain data that the link has already reported as received but it should be used as part of the TLS handshake. Once the TLS handshake is started by this call, all incoming data is first decrypted before being sent to the OnReceivedData callback, and all outgoing data is queued until the TLS handshake completes, and then sent encrypted over the link." },
},
}, -- cTCPLink