Skip to content

class_tcp_server

reduz edited this page Feb 23, 2014 · 9 revisions

TCP_Server

Inherits: Reference\n\n

Brief Description

TCP Server.

Member Functions

Description

TCP Server class. Listens to connections on a port and returns a StreamPeerTCP when got a connection.

Member Function Description

  • int ** listen ** ( int port, StringArray accepted_hosts=StringArray() ) \ Listen on a port, alternatively give a white-list of accepted hosts.
  • Object ** take_connection ** ( ) \ If a connection is available, return a StreamPeerTCP with the connection/
  • void ** stop ** ( ) \ Stop listening.

Clone this wiki locally