Sorry it seems there is no SetCancelButtonLabel() Method, or I can't find it.
https://learn.microsoft.com/en-us/windo ... uttonlabel
Search found 260 matches
- Fri May 16, 2025 9:10 am
- Forum: Tricks 'n' Tips
- Topic: Select folder dialog
- Replies: 9
- Views: 5394
- Thu Apr 17, 2025 1:29 pm
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
I confirm, at the moment my server is handling 280 simultaneous TLS connections without problem.
- Wed Apr 16, 2025 2:36 pm
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
I think I found where the problem is coming from. It seems that the mixing of TLS and non-TLS clients connecting to the TLS server is the cause. Since changing the port for about a hundred clients and the server, only TLS clients are connecting, and I no longer have issues with dialogue loss on the ...
- Wed Apr 16, 2025 12:30 pm
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
idle, I tested the keepalive setsockopt option server side and client side a few days ago (didn't mention it sorry) and unfortunately it doesn't fix the problem.
PBJim, I'm working on LAN. And for now, I don't have separate loops to handle TLS and non TLS clients. I will change the port on TLS ...
PBJim, I'm working on LAN. And for now, I don't have separate loops to handle TLS and non TLS clients. I will change the port on TLS ...
- Wed Apr 16, 2025 7:22 am
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
Ok, the more I dig, the more I'm lost...
I tested by modifying the client/server example from PB doc to keep client connection up and sent every 15/30/60 seconds a string to the TLS server : no problem detected.
Then I went back to my program and removed the TLS security from the client and the ...
I tested by modifying the client/server example from PB doc to keep client connection up and sent every 15/30/60 seconds a string to the TLS server : no problem detected.
Then I went back to my program and removed the TLS security from the client and the ...
- Mon Apr 14, 2025 3:14 pm
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
I found a new problem (since I activated TLS).
My console application, a client-like connected to the server ( permanent connection ) can't communicate with the server after 15-30 seconds of inactivity. However the console is not disconnected from the server.
If I reinitialize the connection ...
My console application, a client-like connected to the server ( permanent connection ) can't communicate with the server after 15-30 seconds of inactivity. However the console is not disconnected from the server.
If I reinitialize the connection ...
- Mon Apr 14, 2025 11:41 am
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
I moved the delay(10) inside the Case 0 so that it only waits in that specific scenario. Maybe one day I will figure out why this error occurs...
Code: Select all
Select error
Case 0
ret = 0
delay(10)
Debug "None"
- Mon Apr 14, 2025 7:40 am
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
That's the one I'm using.
- Thu Apr 10, 2025 1:22 pm
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
Here is some feedback.
Because my tcp server was using recv and send socket functions, I rewrote everything and now i'm using internal PB functions through your wrappers Receive/SendNetworkDataEx().
Everything is working great without TLS : 320 clients + 1 admin console at peak simultaneous ...
Because my tcp server was using recv and send socket functions, I rewrote everything and now i'm using internal PB functions through your wrappers Receive/SendNetworkDataEx().
Everything is working great without TLS : 320 clients + 1 admin console at peak simultaneous ...
- Fri Mar 28, 2025 4:24 pm
- Forum: Feature Requests and Wishlists
- Topic: Send/ReceiveNetworkData(), ConnectionID()... crash prevention
- Replies: 2
- Views: 969
Send/ReceiveNetworkData(), ConnectionID()... crash prevention
Hi,
I'm curious about the behaviour of those network functions when the connection parameter is not valid anymore.
I'm working on a TCP client/server (=~ 250 simultaneous connected clients) and if a client disconnects when a working thread try to send data to it, crash happens. I have to check ...
I'm curious about the behaviour of those network functions when the connection parameter is not valid anymore.
I'm working on a TCP client/server (=~ 250 simultaneous connected clients) and if a client disconnects when a working thread try to send data to it, crash happens. I have to check ...
- Fri Mar 28, 2025 8:14 am
- Forum: Tricks 'n' Tips
- Topic: Wrappers to do full sendNetworkData and ReceiveNetworkData
- Replies: 56
- Views: 6054
Re: Wrappers to do full sendNetworkData and ReceiveNetworkData
Question for idle :
How would you handle with SendNetworkDataEx() a message > 65536 bytes ?
How would you handle with SendNetworkDataEx() a message > 65536 bytes ?
- Wed Mar 26, 2025 1:14 pm
- Forum: Tricks 'n' Tips
- Topic: Wrappers to do full sendNetworkData and ReceiveNetworkData
- Replies: 56
- Views: 6054
Re: Wrappers to do full sendNetworkData and ReceiveNetworkData
I asked the same question to Copilot and it seems most of the time the best method to test a socket availabilty is to send a empty message.
The problem with SendNetworkData() is if the ClientID (socket) is not accessible, it crashes the application (invalid memory access) instead of returning an ...
The problem with SendNetworkData() is if the ClientID (socket) is not accessible, it crashes the application (invalid memory access) instead of returning an ...
- Tue Mar 25, 2025 1:34 pm
- Forum: Tricks 'n' Tips
- Topic: Wrappers to do full sendNetworkData and ReceiveNetworkData
- Replies: 56
- Views: 6054
Re: Wrappers to do full sendNetworkData and ReceiveNetworkData
Try this Quin :
Procedure Is_Socket_Available(SocketHandle)
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Protected name.SOCKADDR
Protected namelen = SizeOf(SOCKADDR)
If getpeername_(SocketHandle, name, @namelen) <> 0 ; on a une erreur
Debug WSAGetLastError_()
ProcedureReturn 0
Else ...
Procedure Is_Socket_Available(SocketHandle)
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Protected name.SOCKADDR
Protected namelen = SizeOf(SOCKADDR)
If getpeername_(SocketHandle, name, @namelen) <> 0 ; on a une erreur
Debug WSAGetLastError_()
ProcedureReturn 0
Else ...
- Mon Mar 24, 2025 8:34 am
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
Thank you very much idle.
I was testing your previous version of Send/ReceiveNetworkDataEx() and NetworkErrorContinue(). It was way better than my own code.
I will test the new one and give you some feedback.
I was testing your previous version of Send/ReceiveNetworkDataEx() and NetworkErrorContinue(). It was way better than my own code.
I will test the new one and give you some feedback.
- Fri Mar 21, 2025 2:48 pm
- Forum: Coding Questions
- Topic: Client/Server TCP TLS communication problem
- Replies: 47
- Views: 2597
Re: Client/Server TCP TLS communication problem
To get back to my problem, here is a new test : The client requests with a string, the server responds to this request with a string
- 14 connections + receivedata + deconnection : OK (each time there are 2 data events and receivenetworkdata returns -2 then the 3rd contains the data from the client ...
- 14 connections + receivedata + deconnection : OK (each time there are 2 data events and receivenetworkdata returns -2 then the 3rd contains the data from the client ...