Core Function SSClientIP
From Sputnik Wiki
(Difference between revisions)
m (1 revision) |
|||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
<pre> | <pre> | ||
| − | SSClientIP( | + | SSClientIP( <client socket> ) |
</pre> | </pre> | ||
| Line 8: | Line 8: | ||
=== Parameters === | === Parameters === | ||
| − | |||
| − | |||
| − | |||
| − | |||
==== <client socket> ==== | ==== <client socket> ==== | ||
| Line 19: | Line 15: | ||
=== Return Value === | === Return Value === | ||
| − | Success: Returns | + | Success: Returns the IP. |
| − | Failure: Returns | + | Failure: Returns empty string. |
=== Remarks === | === Remarks === | ||
Latest revision as of 06:20, 15 June 2015
SSClientIP( <client socket> )
Contents |
Description
Get the IP of a client socket.
Parameters
<client socket>
The client to get the IP from.
Return Value
Success: Returns the IP.
Failure: Returns empty string.
Remarks
This is NOT a generic socket toolset; You can't use this to connect to anything instead it is used to connect Sputnik clients with Sputnik servers in a very easy to use way.
Example
See the Listen() and Connect() for examples