-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Namens Arno Garrels
Verzonden: vrijdag 8 februari 2013 17:53
Aan: ICS support mailing
Onderwerp: Re: [twsocket] HTTPS problem
Wilfried Mestdagh wrote:
It is an old application written in Delphi 7
Hello Arno,
Ok I will try with latest version. This is at the moment not the case. It is
an old application written in Delphi 7. Normally I don't update components
at the time there are a lot of commercial applications because I cannot test
them all.
But I have Delphi XE on another VM and will
Ik ga dus eerst proberen in Delphi XE met latest version.
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Namens Arno Garrels
Verzonden: woensdag 6 februari 2013 18:47
Aan: ICS support mailing
Onderwerp: Re: [twsocket] HTTPS problem
Hello,
I have a application with THttpCli posting data to a server in HTTPS.
Normally I have to get back a little data and a statuscode 201. Certainly it
won't work anymore. Here is nothing changed (only the internet provider and
a faster VDSL line) and provider say it is still working when they
Hi,
I try to upload a file in THttpSrv, but in ExtractURLEncodedvalue, I only
have 'datafile' containing the filename. If I try with socketspy in between
the I do not see any upload of the file (only datafile=filename.ext). So I
think I'm missing something.
This is the generated HTML code to
2011 15:56
Aan: ICS support mailing
Onderwerp: Re: [twsocket] SSL session closed with 10053
Use HttpCli.SslContext := TSslContext.Create(nil);
Best Regards,
SubZero
On Mon, Oct 17, 2011 at 16:06, Wilfried Mestdagh
wilfr...@mestdagh.bizwrote:
Ok thx SZ :)
FSslContext
Hi,
This is my First SSL with THttpCli. This site requires a BASIC
authentication but that is not importand here. The strange thing is I get a
session closed with winsock error 10053.
Nothing is sent. If I put SocketSpy in between then I also have the 10053
in Socketspy immediately after the
Hi Arno,
Thank you. You put me on a tracé. I put a breakpunt over there, it is not
the FSslEnable, but FSslContext is NIL so exeption is raised and eaten
somewhere.
Now my question: What is SSLContext and what should I do with it?
procedure TCustomSslWSocket.StartSslHandshake;
begin
{$IFNDEF
Hello SZ,
Stupid question: in which unit is TSSlContext declared? I'm pulling my hair :(
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Ok thx SZ :)
FSslContext := TSslContext.Create(nil);
HttpCli := THttpCli.Create(nil);
Where and to what do I assign FSslContext to THttpCli ?
--
mvg, Wilfried
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Hi,
to the target server, I need to send just two bytes, 0xBB and
0x83
You only need the HttpCli if you use HTTP protocol. Your device does not. It
uses his own protocol (receiving 2 bytes - sending results). So you need to
develop a simple TCP client program using TWSocket.
If you need to
Hi,
Would the demo Client5: A basic client program using TWSocket
component. seem to you who know like an alternative good starting
point for my efforts?
The good starting point is: do not copy! - Study example; then start from
nothing - zero - null !
--
mvg, Wilfried
Hi,
I would like to instead use the first option and not have it cut off on
the first word. Is that possible?
The result is depending on the email reader of the recipient and not
predicable if you don't follow the rules. See the RFC's for header lines in
emails therefore. You must build a
Hello,
I'm trying to POST to a server that needs authentication. I expect a 401
from the server with in the header something like:
WWW-Authenticate: Basic Realm=/something
But it is not in the response. Also what does the 'connection: close' mean?
I think the THttpCli does not send an
Hi Angus,
Yes indeed, I found out already. The authentication is an argument in the
POST command. When it is invalid or missing the server returns a 401 with
the missing header line. Is that a bug in the server?
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
Hi Adam,
despite tearing out some hair and losing a
Hopefully you have spare :)
Result := PAnsiChar(NotesList.Strings[0]);
NotesList.Delete(0);
The problem is that you give a pointer to the return value of that function
to something that not exists anymore after the functions exit:
the sessionclosed procedure but it didn't specify what
message to send.
Is there a list of messages that can be used with ICS?
Regards, Adam
-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
On
Behalf Of Wilfried Mestdagh
Sent: 09 September 2011 09:04
Hi Adam,
The problem is that the DLL is quite unstable so I was trying to use a
different approach and hoping to get better stability.
Are we talking about TWSocket in your second approach?
Right now, I have the basic DLL test project running - it is connecting
to
my server but the worker
Hi Adam,
Hi - after pulling out a lot of hair
Hopefully you have some reserve :)
I've spent the last couple of days tinkering with the DLL 1 example but
DLL is not different from other. Only think is if you write a DLL you maybe
don't know who call it. Maybe a programmer will use the DLL
Hi,
Possible you have an unhandled exception. Please put some logging code into
the event OnBGException to check this, as well for the server socket as for
the data (client) sockets.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
?
Hello Wilfried,
Thanks for answering.
Wouldn't an unhandled exception show up in a message box?
Henk van der Meer
Time Service
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Namens Wilfried Mestdagh
Verzonden: maandag 5
in TWServerSocket? Should it be set to
TRUE? In demo application property is set to FALSE and only client
sockets are set to TRUE.
Now I have no idea where is problem with service hanging. Any idea
where
to look is welcome.
Thanks
Lukas Skala
Dne 17.8.2011 18:18, Wilfried Mestdagh napsal(a):
Hi
Hi,
If OnDataAvailable triggers then you have to try to receive data, even if
RcvdCount (wich is unreliable) returns 0. If you don't receive then
OnDataAvailable will be called again in a closed loop en that is probably what
happens.
--
mvg, Wilfried
http://www.mestdagh.biz
]
Namens Arno Garrels
Verzonden: maandag 1 augustus 2011 16:57
Aan: ICS support mailing
Onderwerp: Re: [twsocket] Socket flushing
Wilfried Mestdagh wrote:
Hi Eric,
Socket.Send(@Data[0], Length(Data));
Socket.Close;
I think this is better:
Socket.Send(@Data[0], Length
Hi Arno,
Why? Do you have arguments?
No, just something I recall, but it is very long time ago so I assume you
are right.
I agree that Flush generally violates the async paradigm and
_might cause problems, however removing the call to MessagePump
should not make a difference.
OK
--
mvg,
Hi Eric,
Socket.Send(@Data[0], Length(Data));
Socket.Close;
I think this is better:
Socket.Send(@Data[0], Length(Data));
Socket.Shutdown(1);
This will send all data, telling the other end to signal to close when
received. There is in your case no need to call the Flush method.
--
mvg,
-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Namens Arno Garrels
Verzonden: maandag 1 augustus 2011 16:57
Aan: ICS support mailing
Onderwerp: Re: [twsocket] Socket flushing
Wilfried Mestdagh wrote:
Hi Eric,
Socket.Send(@Data[0], Length(Data
H Eric,
If I keep a loop like this
while (FHSocket INVALID_SOCKET) and (not bAllSent) do
TryToSend;
And TryToSend fails, will it fail everytime if I don´t call the message
pump? In this case an infinite loop would happen right?
I think so yes.
--
mvg, Wilfried
Hi Eric,
If the reason that you call the Flush method is because you want to be sure
all is sent before closing the socket then you can better call ShutDown(1)
method.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or
Hi Eric,
TryToSend will exit if winsock returns WSAEWOULDBLOCK. I think that is the
reason for the message pump call. I never used the Flush method.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
-Oorspronkelijk bericht-
Van:
I´m having some issues with socket flushing due to the messageloop that
What issues?
What is the purpose of calling MessagePump over here?
Good question :) This dates from 1994...
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
When I call Client.Close the Client will be freed automatically
(destructor of Client will be called)?
Yes. Sidenote: if you do this from withing an event then call CloseDelayed.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
Hi,
Maybe too many sockets in TIME_WAIT? You can chech this with netstat -a
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Namens
Hi Eric,
I know, but if you still call OnDataAvailable with current socket
options,
for the ones that has not set wsoNoReceiveLoop (By default) the
behaviour
will still be the same right... for the ones that has set
wsoNoReceiveLoop
(like me) OnDataAvailable will still be called, and if I
I know this is by design, but I believe that is why you have added
wsoNoReceiveLoop so we don´t have to receive data in OnDataAvailable...
No this is addes to get out of a closed loop in case of users had slow code
to process fast data.
software wasn´t being able to process over 150mbits of
Hi,
it is expecting that my
event handler DO receive the data (But it doesn´t) and then, it locks
up on a loop!
You have to receive the available data in the OnDataAvailable event handler.
This is by design. If you want to process the data in another thread then
the most obvious is that you
Hi
RecStream := TMemoryStream.Create;
If you have a memory leak in this code fragment then you probably forgot to
free the stream.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket
Hi,
No you cannot repair lower layers. There could be a hardware problem or a
driver problem. But I think you should be able to connect again without quit
/ restart the application.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
Hi,
This is how winsock works. OnSessionConnected is fired with an error, after
it OnSessionClosed is fired with or without an error. You should use the
events in how to access the component.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
Hello,
I have an SMTP server receiving mail to be send by SMS. I have to implement
SPF record verification. I think with this information I can at least verify
that the SMTP client who connect is the one who he claims to be.
But where and how can I grab SPF records? Did somebody already written
Hi Angus,
Thank you for reply and usefull information. I'm in the stage of price for
customer but if I get my hands into it there sure will be ICS example :)
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
-Oorspronkelijk bericht-
Hi Arno,
It wasn't registered for the correct string type
Yes this fix is working fine.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Hi Francois,
Actually the service is a dual mode service/app console and it works
perfectly well as a console application (and also as a service when a
debugger is attached).
I do not understand the 'dual mode' but could that be a reason? What happens
if you put your application into 1 object
Hi Francois,
A dual mode service is an application which detect if it run as a
service
I understeand. I did the same concept years ago
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket
Hi,
I just discovered that the property editor for LineEnd is broken using
Delphi XE. No big deal for me as I always create TWSocket at runtime. I
don't know how much work it is. If someone can give some hint maybe I find
the time to work on it.
--
mvg, Wilfried
http://www.mestdagh.biz
Hi,
I just installed Delphi XE pro. Is http://wiki.overbyte.be/arch/icsv7w.zip
the latest version for ICS?
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Hello,
I fixed the problem but I don't understand why it did as what I
changed should not have chaneg anything, I only removed the
ReceiveStr() loop
The design is that this method only be called 1 time in OnDataAvailable. So
by calling it multiple times you are in an
Hi,
Sorry again, Francois told me and I missed it.
https://www.quicksilvermail.net/socketspyc.zip
Glad it is solved :)
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org
Hi,
Do you reconnect in the OnClose event?
If so do it outside it by posting a message to a custom message handler.
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
Hi Anton,
Never had that issue, but can you First disable all firewall and
virusscanner on the machine where you run the application and try again?
--
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org
Hi Graham,
Yes TFileStream will use disk. If you have only small transfers you can do
as you do now. If you worry about speed then you could gain speed a lot by
using pointers to your own memory location instead of TStream.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk
Hi,
To clarify, OnDataAvailable has received complete data, say:
help\n
In processing that data, an exception occurs and TWSocket.Abort is called
to
abort the connection. Before .Abort returns, OnDataAvailable is called
again, with the exact same that was already being processed:
These are
Hi,
WSocket1.Addr:='192.168.1.2';
WSocket1.port:='9600';
I get an error 10049.
Means you cannot bind to that address. '192.168.1.2' is the address on the
remote machine, you can not listen on that.
The only difference I can see is the sending local port number is not
9600.
This should make
Hi,
You use UDP and UDP respect packet boundary. So as soon winsock has receive
a complete packet then it will deliver to application.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
Hi Engi,
No the Receive method is not blocking. The method copy the already received
data with a maximum of what you give to it as size.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
Engi
Hi Dave,
In addition of the reply of Francois. If your receiver has no time receiving
an UDP packet (for example when it arrives when your application is busy
displaying it in the TRichEdit) then it will be trown away. That is nature
of UDP and probably the reason that you only receive 1 packet.
Hi,
The mails are automatically sent to every subscriber on the list. If you get
your mail with the same email address you will get all the mail
automatically.
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org
For me too a merry christmas an a happy new year!!!
And for next year interesting projects
--
mvg, Wilfried
http://www.mestdagh.biz
-Oorspronkelijk bericht-
Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens
Signed Source® Project
Verzonden: dinsdag 22
Hi,
while sckCustScreen.State wsclosed do
Application.ProcessMessages;
No, use the State property only for displaying states, not to take action.
Also it is not a wise idea to put your application in a loop. Use OnClose
event of the socket. It will fire when it is close; in the
Hello Signed,
Can you ping your local machine (127.0.0.1)?
Can you ping both with the command interpreter?
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Thursday, November 19, 2009, 20:39, Signed Source® Project wrote:
Hi guys,
I have
..
Whats the use of this if it isn't pinging anything else?
-daniel
- Original Message -
From: Wilfried Mestdagh wilfr...@mestdagh.biz
To: ICS support mailing twsocket@elists.org
Sent: Friday, November 20, 2009 12
- Original Message -
From: Wilfried Mestdagh wilfr...@mestdagh.biz
To: ICS support mailing twsocket@elists.org
Sent: Friday, November 20, 2009 12:55 PM
Subject: Re: [twsocket] OverbyteIcsPingTst
Hello Signed,
Can you ping your local machine (127.0.0.1)?
Can you ping both
- Original Message -
From: Wilfried Mestdagh wilfr...@mestdagh.biz
To: ICS support mailing twsocket@elists.org
Cc: Signed Source® Project dan...@signedsource.com
Sent: Friday, November 20, 2009 9:41 PM
Subject: Re[2]: [twsocket] OverbyteIcsPingTst
Hello Daniel,
I tryed thencompiled exe
Hello Andrea,
You should check in every event if there is a Winsock error. When nobody
is listening then OnSessionConnected is fired with winsock error 10061.
Then you know there is no connection. That is how winsock works.
Use the OnChangeState only for displaying options if you need it.
If
Hello Michael,
Can you point me to the example and what exacly is going wrong? I like
to help you.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Monday, November 16, 2009, 15:26, Kochendoerfer, Michael wrote:
I'd like to stay with ICS,
wrote:
Wilfried,
thanks for your great support! I'd like to send you the example offline,
as soon as I'll get access to my office pc.
Michael
Wilfried Mestdagh schrieb:
Hello Michael,
Can you point me to the example and what exacly is going wrong? I like
to help you.
---
Rgds
Mixed up request types with methods, guess you know what I mean
nevertheless.
That's ok. Thanks for the help.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
thank you Arno for fast answer,
Does it not matter how the code is written (OnRequestDone), eg like
this:
case RqType of
smtpConnect: begin
Cli.Helo;
end;
smtpHelo: begin
Cli.Mail;
end;
Meaning, I don't use Ehlo method or so.
Hello Alper,
I'm using LineMode, to receive all data sent. (My data size is 49b in total
and no string data in it)
Are there any conflicts i may encounter in the approach stated below?
Yes, if your binary data contains the line end characters you use the
your code will fail as Arno already
Hello Engi,
How do you send your data in the server?
it should be something like:
for n := 0 to Srv.ClientCount - 1 do
try
Srv.Clients[n].SendStr('Hello again');
except
end;
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Hello Flavio,
Not a known issue. But when it accept new connections after you restart
your application, maybe you are out of nonpaged memory? (sockets use
nonpaged).
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Monday, June 15, 2009,
Hello Markus,
Since it happen sometimes it is possible you have some where an
exception that does not show up where you loose data.
Other possibility I see you have a long lineEnd. Can you also test with
1 or 2 character? Maybe you have an untested situation.
---
Rgds, Wilfried [TeamICS]
Hello Markus,
problem here is: it's a connection to 127.0.0.1 which at least Wireshark
doesn't see. Can you recommend any other packet sniffer capable of
watching localhost connections?
You can use SocketSpy (you can find it at the user made page). It works
like a kind of proxy dislaying all
Hello Paul,
use starting from WM_USER.
You don't have to worry because you send / post messages to specific
windows, so the right window will receive it.
WM_USER = 0x400
WM_APP = 0x8000
Windows help say:
Message numbers in the second range (WM_USER through 0x7FFF) can be
defined and used by an
Hello Ronaldo,
At first sight I see nothing wrong with your code. However it is not
normal that some of the sockets close without reason. Wich of the
sockets do the close? Maybe the close is with a winsock error, then it
will tell you more about the reason. You have at least log all the
winsock
Hello Ronaldo,
As Arno already sayed this is not a winsock error. But to be sure
(because I don't see it in your code example), we are talking about the
ErrCode argument in the TWSocket events, right?
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
Hello Ronaldo,
yes, error is on TWsocket!
here is code
I don't see anywere in your code logging of the ErrCode argument in the
TWSocket events! So it is not sure where you get the error 5
I also see you use OnError event of TWSocketServer and use GetLastError
there. Don't use OnError, instead
Hello Ronaldo,
oke we are getting somewhere :)
procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word);
begin {this is Socket = TWSocket}
memo1.lines.add('Proxy Disconnected from Server!');
memo1.lines.add( Format('Error %d on SocketSessionClosed',
Hello Ronaldo,
10053 is when OS decide to stop the connection. Normally this is because
of some network problem, a malfunctioning router or switch. But many
virus scanners and firewalls are doing wierd things with TCP, so stop
any service of it (not disable it) and test again.
---
Rgds, Wilfried
Hello Markus,
I haven't yet a failure message or so
if a socket can't connect then onsessionconnect is fired with an error
code. then onsessionclose is fired, eventually also with an error code.
I assume you keep these errorcodes in an errorlog file or so. you have
to give this so we can see
Hello Jeff,
I followed the example (I think!) and created the stream in DocBegin,
used it RequestDone and freed it in DocEnd - which seems logical but in
debugging I see that DocEnd comes before RequestDone.
DocBegin: fires at begin of the document
DocEnd: fire at end of the document
Hello Markus,
Release post a message to a hidden window. when the message is received
Destroy is called. You can check that with the debugger.
Destroy call the destructor direct. Free checks for null value and then
calls Destroy.
---
Rgds, Wilfried [TeamICS]
Hello Markus,
you have to destroy it outside an event handler. to do that you can call
the Release method. Then it is destroyed when messages are pumped again,
so after your code finish.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Hello Arno,
procedure PatchINT3;
This procedure works great. But something is strange. If I run this in a
separate application then it does not work. However as far as I know a
DLL is loaded only once in memory. So then it should work also if I run
this in a separate app and let the other
Hello Paul,
You could do very small delays by posting a message to a custom message
handler. You cannot measure the delay, but it is not depending the
timeslice like with the other delay's or a TTimer.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
Hello Paul,
I think tou mean sending a message here to block the program flow a while.
Not exacly. If you use SendMessage to a message pump for a window
created in the same thread contextt then it is just a function call. If
other thread context then it will block until the thread has
Hello Paul,
What about the assembler pause opcode? I think it is introduced starting
pentium 4. You could do the delay loop in asm and insert pause's to
decrease the cpu load.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Tuesday, January
Hello Arno,
This is interesting. If I see it clear you change the int 3 with a nop
instruction.
The only strange thing is, that I never had that problem (win xp sp3,
D7), but it could be by a recent upgrade service pack maibe...
---
Rgds, Wilfried [TeamICS]
Hello,
I run a certain application using TWSocket, and when I run it in the
debugger, then every time when a re Connect is happening (if no server
available) the debugger stops at a hardcoded break:
NTdll.DBGBreakPoint
int 3
ret
any idea how this can happen ?
--
Rgds, Wilfried
Hello Paul,
No this is not needed in a tray icon because it can use the notification
from windows. You find one on my site.
Of course when you popup a menu if click on it then it processes
messages but this is NOT from within an event from an ICS component so
no harm.
---
Rgds, Wilfried
a time ago I found a free service to message board that could be act as
a copy of a mailing list and vice versa. then both can be used.
if Francois agree I could search for it.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Wednesday,
Hello Anton,
*embarrassed* how these two statements combine?
Why several Receives should cause troubles?
it is by design, only 1 receive call in the event.
And another question. Is TWSocket.RcvdCount value reliable, i.e. if
it = 0, then there is really no data in the socket?
Microsoft
Hello Anton,
Don't worry. You don't have to do anything on the 'would block' winsock
error. TWSocket deals with it.
when OnDataAvailable fires, just try to receive all data. When Receive
return 0 or -1 then just exit the event handler.
-1 is error (don't worry), and 0 is if the peer has closed.
Hello Martin,
Here is a small example:
procedure TFoo.FUDPDataAvailable(Sender: TObject; Error: word);
var
Buffer: array [0..1023] of char;
Len: integer;
Src: TSockAddrIn;
SrcLen: integer;
begin
SrcLen := SizeOf(Src);
Len := TWSocket(Sender).ReceiveFrom(@Buffer,
Hello ibrahim,
Some pictures are not showing
When the server close then the local connection is closed also. Probably
all data is not transmitted to the client at this moment. Try to find
this place in the code and replace Close or CloseDelayed with
Shutdown(1). That's probably the reason.
---
Hello Tobias,
In order to messure transmission speed I would write a small
test suite including client and server. The client would send
preallocated, constant data blocks in a loop and would use event
OnDataSent to send the next block. The server would simply through
away anything.
You
Hello John,
Normally this is no problem. I think with dropdown menu open there is no
problem also, because windows is pumping messages when a menu is open.
But depending on your applicaiton you can do the socket thing in a
separate thread. Other possibility is to run the communication in a
NT
be sent.
Given the 300ms for Send to return, is this to be expected?
If it is, then I will look to optimise elsewhere. But it just seems likely
that
something is a miss - wrong option setting maybe.
Regards,
Andy
Wilfried Mestdagh wrote:
Hello Dan,
As far as I know it shouldn't cause
My debug function to log the timestamps was the culprit.
oke then all is fine :)
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Hello Dan,
As far as I know it shouldn't cause the TWSocket send call to take
longer since that is asynchronous
Correct, but I think he means the total time to send, not the time of
the function call.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
1 - 100 of 578 matches
Mail list logo