Search found 28 matches: wsacleanup

Return to advanced search

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

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

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

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

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

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

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

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

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

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

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

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

Re: Descubrir dispositivos via Bluetooth

... len(aBt) if msgyesno("¿ Deséa enviar información a "+aBt[i,1]+" ?","CdiBlue") msginfo(aBt[i,2],aBt[i,1]) end if next WSACleanup() return // FUNCIONES IMPORTANTES #pragma BEGINDUMP #include <WinTen.h> #include <Windows.h> #include <ClipApi.h> #include ...
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 !!!

... 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. Richard
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: 14254
Next

Return to advanced search