Recent

Author Topic: works link Internet?  (Read 2296 times)

alkis3

  • New Member
  • *
  • Posts: 12
works link Internet?
« on: June 27, 2012, 10:59:01 pm »
Lazarus linux ubuntu
as to determine work or does not work on the computer internet?
on the form there is a button , how to make the code - determine the presence connection computer  with internet?
help please

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: works link Internet?
« Reply #1 on: June 28, 2012, 01:08:05 am »
Try making a connection, if you don't get a reply in a timeout you've set (BSD connect function description already specifies this AFAIK), assume the computer isn't connected. The BSD functions are in Sockets unit. High level wrapper is in fcl-net packages.

 

TinyPortal © 2005-2018