| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="SocketServer" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | An abstract class for servers based on sockets. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | A socket server. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="is_connection_available" qualifiers="const"> |
| 13 | <return type="bool" /> |
| 14 | <description> |
| 15 | Returns [code]true[/code] if a connection is available for taking. |
| 16 | </description> |
| 17 | </method> |
| 18 | <method name="is_listening" qualifiers="const"> |
| 19 | <return type="bool" /> |
| 20 | <description> |
| 21 | Returns [code]true[/code] if the server is currently listening for connections. |
| 22 | </description> |
| 23 | </method> |
| 24 | <method name="stop"> |
| 25 | <return type="void" /> |
| 26 | <description> |
| 27 | Stops listening. |
| 28 | </description> |
| 29 | </method> |
| 30 | <method name="take_socket_connection"> |
| 31 | <return type="StreamPeerSocket" /> |
| 32 | <description> |
| 33 | If a connection is available, returns a StreamPeerSocket with the connection. |
| 34 | </description> |
| 35 | </method> |
| 36 | </methods> |
| 37 | </class> |