func_network_bindsocket.rst 493 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. _func_network_bindsocket:
  2. ==========
  3. BindSocket
  4. ==========
  5. BindSocket -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. BindSocket( socket:TSocket,localPort )
  10. Bind a socket to a local port
  11. If @localPort is 0, a new local port will be allocated. If @localPort is not 0,
  12. #BindSocket will fail if there is already an application bound to @localPort.
  13. Parameters
  14. ==========
  15. Return Values
  16. =============
  17. True if successful, otherwise false
  18. Examples
  19. ========
  20. See Also
  21. ========