-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Wilfried Mestdagh
Sent: 13 January 2007 17:07
To: twsocket@elists.org
Subject: Re: [twsocket] WinSock error 10035 with TWSocketServer
Hello Bevan,
I'm not a CBuilder specialis
Hi Dan,
TWSocketClient* Client = dynamic_castTWSocketClient*(Sender);
AnsiString msg = Client-ReceiveStr();
The first line will execute, I think the second line will generate an
exception here. I´m not sure. Did you have it into an exception block ?
As far as I know the
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: 17 January 2007 22:12
To: twsocket@elists.org
Subject: Re: [twsocket] WinSock error 10035 with TWSocketServer
Hi Dan,
TWSocketClient* Client
Hello Bevan,
I'm not a CBuilder specialis but:
AnsiString msg = ((TWSocketClient*) Sender)-ReceiveStr();
This is a good typecast. It tells the compiler that Sender is of type
TWSocketClient, so compiler can do the exact address offset
calculations within the type. You still have to check if
Hello Bevan,
It is normal that you receive an empty string once a while. Just exit
the OnDataAvailable event in that case. When data is really ready to
receive OnDataAvailable will fire again.
About the 10035 yo dont have to worry. This is internally handled by
TWSocket.
---
Rgds, Wilfried
Hi Wilfried,
It is normal that you receive an empty string once a while. Just exit
the OnDataAvailable event in that case. When data is really ready to
receive OnDataAvailable will fire again.
I see your point - the other day I got the same result over and over again,
today the same code
Hi all,
I am using BDS2006 to write a service application that creates a
TWSocketServer and waits for connections. When a connection is made,
the client sends requests and the service processes the requests and
returns the results.
This is all being done with LineMode enabled.
I've written
PROTECTED]
http://www.overbyte.be
- Original Message -
From: Bevan Edwards [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, January 11, 2007 7:28 PM
Subject: [twsocket] WinSock error 10035 with TWSocketServer
Hi all,
I am using BDS2006 to write a service