Search found 30 matches: wsacleanup

Return to advanced search

Re: IP, Mac Address, Name desde mi modem

Cesar, por supuesto que me es util.

Como puedes ver, falta obtener los nombres. No sé porqué -> cNombre := GetHostByAddress(AllTrim(cIP)) , aunque lo use entre las func WsaStartUp() y WsaCleanUp()

Continuaré buscando.

Saludos.
by FranciscoA
Sun Jun 23, 2024 3:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: IP, Mac Address, Name desde mi modem
Replies: 49
Views: 4208

Re: get your external IP

I allready Used

Function GetIP()
Local cVar1
WsaStartUp()
cVar1 := GetHostByName( GetHostName() )
WsaCleanUp()
return cVar1
by Silvio.Falconi
Mon Jun 03, 2024 8:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: get your external IP
Replies: 11
Views: 1112

Re: DNS

WSACleanup() is responsible for performing cleanup tasks when your program is finished using Winsock functionality. Unloads Winsock DLLs: When called, WSACleanup() typically unloads any protocol-specific helper DLLs (Dynamic ...
by Antonio Linares
Fri Mar 29, 2024 7:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DNS
Replies: 5
Views: 1924

Re: DNS

Thank you, Rao! What does the WSACleanup() function do ?
by Natter
Fri Mar 29, 2024 7:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DNS
Replies: 5
Views: 1924

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 returns a different ...
by byron.hopp
Wed Mar 06, 2024 7:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetHostByName( GetHostName() )
Replies: 1
Views: 358

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 on the ...
by karinha
Thu Dec 08, 2022 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Condition of the site
Replies: 3
Views: 526

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: 526

Re: SOCKETS - Hay que reiniciar ordenador para volver a conectar

... ASize( ::aSockets, Len( ::aSockets ) - 1 )      if Len( ::aSockets ) == 0         msginfo("antes de WSACleanUp()")         WSACleanUp()      endif   endif */      //Añadido ...
by Verhoven
Tue May 25, 2021 10:57 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SOCKETS - Hay que reiniciar ordenador para volver a conectar
Replies: 11
Views: 1503

Re: SOCKETS - Hay que reiniciar ordenador para volver a conectar

Hola Antonio. Lo he comprobado y no pasa por WSACleanUp(). La matriz ::aSockets contiene más de un socket. Y este es el problema, porque al hacer end() si queda alguno distinto del que ha creado el programa, como la condición para pasar por WSACleanUp() ...
by Verhoven
Mon May 24, 2021 4:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SOCKETS - Hay que reiniciar ordenador para volver a conectar
Replies: 11
Views: 1503

Tambien Saber Ip LOCAL

... *host_entry; host_entry = gethostbyname(szHostName); char * szLocalIP; szLocalIP = inet_ntoa (*(struct in_addr *)*host_entry->h_addr_list); WSACleanup(); hb_retc( szLocalIP ); } // FINAL
by Busmatic_wpb
Fri Dec 07, 2018 2:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 636

WSAStartup. A tener en cuenta

... 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 de la biblioteca ...
by thefull
Tue Oct 07, 2014 7:27 am
 
Forum: Off Topic / Otros temas
Topic: WSAStartup. A tener en cuenta
Replies: 1
Views: 691

TestSmtp.prg

... = { || oWnd:SetMsg( "Message sent successfully" ) } por: oOutMail:bDone = { || (oWnd:SetMsg( "Message sent successfully" ), WSACleanup()) } Si no me daba el error 10048. Naturalmente siempre espero que acabe un mail antes de enviar otro, por tanto no tengo varios mails enviándose ...
by FiveWiDi
Sun Dec 15, 2013 6:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TestSmtp.prg
Replies: 0
Views: 304

Compilando updftp.prg MVC 2010

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

Re: Volviendo al tema CDO

... * * 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 DEFINE FONT oFont2 NAME "Arial" SIZE ...
by Armando Picon
Fri Nov 04, 2011 2:02 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Volviendo al tema CDO
Replies: 19
Views: 7157

Funcion Ping ERROR Windows 7

... inet_addr(DestinationAddress), RequestData, RequestSize,0, ReplyBuffer, ReplySize, Timeout) IcmpCloseHandle(IcmpHandle) WsaCleanUp() // Very Important if Replicas > 0 bPing:=.t. else bPing:=.f. end if return bPing
by softruz
Wed Sep 28, 2011 10:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion Ping ERROR Windows 7
Replies: 0
Views: 357
Next

Return to advanced search