class_docstr: Creates events by reading from a socket using tornado TCPServer
  
  The stream of incoming bytes is split on a given delimiter, and the parts
  become the emitted events.
  
  Parameters
  ----------
  port : int
      The port to open and listen on. It only gets opened when the source
      is started, and closed upon ``stop()``
  delimiter : bytes
      The incoming data will be split on this value. The resulting events
      will still have the delimiter at the end.
  start : bool
      Whether to immediately initiate the source. You probably want to
      set up downstream nodes first.
  server_kwargs : dict or None
      If given, additional arguments to pass to TCPServer
  
  Examples
  --------
  
  >>> source = Source.from_tcp(4567)  # doctest: +SKIP
class_docstr_tok: ["Creates","events","by","reading","from","a","socket","using","tornado","TCPServer","The","stream","of","incoming","bytes","is","split","on","a","given","delimiter",",","and","the","parts","become","the","emitted","events",".","Parameters","--","--","--","--","--","port",":","int","The","port","to","open","and","listen","on",".","It","only","gets","opened","when","the","source","is","started",",","and","closed","upon","``","stop","(",")","``","delimiter",":","bytes","The","incoming","data","will","be","split","on","this","value",".","The","resulting","events","will","still","have","the","delimiter","at","the","end",".","start",":","bool","Whether","to","immediately","initiate","the","source",".","You","probably","want","to","set","up","downstream","nodes","first",".","server_kwargs",":","dict","or","None","If","given",",","additional","arguments","to","pass","to","TCPServer","Examples","--","--","--","--",">",">",">","source","=","Source.from_tcp","(","4567",")","#","doctest",":","+SKIP"]
code: def stop(self):
      if not self.stopped:
          self.server.stop()
          self.server = None
          self.stopped = True
  
imports: import asyncio
  from glob import glob
  import queue
  import os
  import time
  from tornado import gen
  import weakref
  from .core import Stream, convert_interval, RefCounter, sync
label_desc: Use image node_id 3 for calling the from_tcp obj's underlying member method code with example usage: obj.stop() without return types