func_network_connectsocket.rst 595 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. _func_network_connectsocket:
  2. =============
  3. ConnectSocket
  4. =============
  5. ConnectSocket -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. ConnectSocket( socket:TSocket,remoteIp,remotePort )
  10. Connect a socket to a remote ip and port
  11. For both UDP and TCP sockets, #ConnectSocket will fail if the specified
  12. ip address could not be reached.
  13. In the case of TCP sockets, #ConnectSocket will also fail if there is
  14. no application listening at the remote port.
  15. Parameters
  16. ==========
  17. Return Values
  18. =============
  19. True if successful, otherwise false
  20. Examples
  21. ========
  22. See Also
  23. ========