Search found 50 matches: wsastartup

Return to advanced search

Re: DNS

... WSACleanup() typically unloads any protocol-specific helper DLLs (Dynamic Link Libraries) that were loaded during the initialization process using WSAStartup(). These DLLs provide support for specific network protocols like TCP/IP. Cancels Pending Calls (with caution): It's important to note that ...
by Antonio Linares
Fri Mar 29, 2024 7:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DNS
Replies: 5
Views: 1023

GetHostByName( GetHostName() )

I use WSAStartup() ; cIp := GetHostByName( GetHostName() ) ; WSACleanup(), to get the local IP address. However my system has an EtherNet, Hamachi, and 2 VMware showing as adapters. The address returned by the function GetHostByName ...
by byron.hopp
Wed Mar 06, 2024 7:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetHostByName( GetHostName() )
Replies: 1
Views: 162

Re: Condition of the site

Thank you, Karinha, it works! What are the WSAStartup/Wsacleanup functions for in this case? Why prescribe 2 times: cIp := GETHOSTBYNAME( "yoursite.com" ) cIp := GETHOSTBYNAME( "yoursite.com" ) Good Morning. This was a tip ...
by karinha
Thu Dec 08, 2022 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Condition of the site
Replies: 3
Views: 452

Re: Condition of the site

Thank you, Karinha, it works!
What are the WSAStartup/Wsacleanup functions for in this case?
Why prescribe 2 times:
cIp := GETHOSTBYNAME( "yoursite.com" )
cIp := GETHOSTBYNAME( "yoursite.com" )
by Natter
Thu Dec 08, 2022 6:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Condition of the site
Replies: 3
Views: 452

Tambien Saber Ip LOCAL

... asi.. IpLocal =:IPLOCAL() */ #include <Windows.h> #include <WinSock.h> #include <hbapi.h> HB_FUNC( IPLOCAL ) { WSADATA wsa_Data; WSAStartup( 0x101, &wsa_Data ); char szHostName[255]; gethostname(szHostName, 255); struct hostent *host_entry; host_entry = gethostbyname(szHostName); ...
by Busmatic_wpb
Fri Dec 07, 2018 2:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 607

Re: smtpserver

... held me donne la meme erreur (same error) function SendMail() local oOutMail, cIP, oOutMail1 oDlg:SetMsg( "Sending Internet email..." ) WSAStartup() * oOutMail1 := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) oOutMail := TSmtp():New( cIP := GetHostByName( "smtphm.sympatico.ca",25,.t.,"wilsonrw@sympatico.ca", ...
by richard wilson
Wed Oct 05, 2016 6:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: smtpserver
Replies: 5
Views: 1365

smtpserver

... WSA ERROR CODE : 10060 can you held me function SendMail() local oOutMail, cIP, oOutMail1 oDlg:SetMsg( "Sending Internet email..." ) WSAStartup() * oOutMail1 := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) oOutMail := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ...
by richard wilson
Wed Sep 28, 2016 3:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: smtpserver
Replies: 5
Views: 1365

Re: WSAStartup. A tener en cuenta

Gracias Rafa, habrá que investigar
by cnavarro
Tue Oct 07, 2014 5:56 pm
 
Forum: Off Topic / Otros temas
Topic: WSAStartup. A tener en cuenta
Replies: 1
Views: 453

WSAStartup. A tener en cuenta

... hay una manera de mejorar el rendimiento si una sola conexión de base de datos se inicia y parada repetidamente. Internamente, libpq llama WSAStartup () y WSACleanup () para el inicio de la conexión y desconexión, respectivamente. WSAStartup () incrementa un contador de referencia interno ...
by thefull
Tue Oct 07, 2014 7:27 am
 
Forum: Off Topic / Otros temas
Topic: WSAStartup. A tener en cuenta
Replies: 1
Views: 453

Compilando updftp.prg MVC 2010

... distinta C:\VC2010\SDK\Include\winsock.h(871) : vea la declaración de 'getprotobyname' C:\VC2010\SDK\Include\winsock2.h(2200) : error C2375: WSAStartup' : nueva definición; vinculación distinta C:\VC2010\SDK\Include\winsock.h(875) : vea la declaración de 'WSAStartup' C:\VC2010\SDK\Include\winsock2.h(2219) ...
by nnicanor
Tue Apr 17, 2012 5:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Compilando updftp.prg MVC 2010
Replies: 1
Views: 730

Re: Volviendo al tema CDO

... :=hIniFile["SETUPMAIL"]["remitente"] * * asegurando que tenemos conexion a Internet mediante Windows Sockets DLL. nIError := WSAStartup() IF nIError == 0 // Si hay conexion * WSACleanUp() // Limpiamos Windows Sockets DLL * DEFINE FONT oFont NAME "Arial" SIZE 0, -16 ...
by Armando Picon
Fri Nov 04, 2011 2:02 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Volviendo al tema CDO
Replies: 19
Views: 6343

Funcion Ping ERROR Windows 7

... ReplySize:=278,; Timeout:=2000 && Milisegundos de espera,bPing:=.f. default DestinationAddress := "www.google.com" if WSAStartup() != 0 return bPing endif DestinationAddress:=GetHostByName(DestinationAddress) IcmpHandle:=IcmpCreateFile() Replicas:=IcmpSendEcho(IcmpHandle, ...
by softruz
Wed Sep 28, 2011 10:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion Ping ERROR Windows 7
Replies: 0
Views: 346

Re: Descubrir dispositivos via Bluetooth

Perdonar pero no he visto vuestros mensajes, aqui teneis el codigo para mostrar los dispositivos a tu alcance: function main() WSAStartup() nWsaError:=WSALookupServiceBegin(@lphLookup) if nWsaError<>0 // Tenemos un error localizado en wsaError.h do case case nWsaError = WSASERVICE_NOT_FOUND ...
by softruz
Wed Nov 18, 2009 4:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Descubrir dispositivos via Bluetooth
Replies: 5
Views: 1318

Re: Help to complete the wiki and get a free FWH 9.07 !!!

... are welcome. Antonio, yes, but don't forget, I create these functions below: xBrJustify() ok xBrowseNew() ok xBrwAddColumn() ok VirtualRdd() ok WSAStartUp() ok WSAGetLastError() ok WSACleanUp() ok WSAAsyncSelect() ok WNetGetErrorText() ok VolumeName() ok WndTop() ok These functions my second. ...
by richard-service
Thu Aug 27, 2009 6:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help to complete the wiki and get a free FWH 9.07 !!!
Replies: 80
Views: 14256

Re: Help to complete the wiki and get a free FWH 9.07 !!!

... then you can get another free product :-) Antonio, ok. I'm working now.... xBrJustify() ok xBrowseNew() ok xBrwAddColumn() ok VirtualRdd() ok WSAStartUp() ok WSAGetLastError() ok WSACleanUp() ok WSAAsyncSelect() ok WNetGetErrorText() ok VolumeName() ok WndTop() ok Regards, Richard
by richard-service
Thu Aug 27, 2009 3:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help to complete the wiki and get a free FWH 9.07 !!!
Replies: 80
Views: 14256
Next

Return to advanced search

cron