> -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,
>
>
Hi Dan,
> > > TWSocketClient* Client = dynamic_cast(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 dynam
> -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&
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
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 w
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 [Team
Hi Francois,
Thanks for your prompt reply.
>> I'm getting error 10035 (operation would block) and
>> wondered why this would happen now and not
>> previously.
>
> Error 10035 is not really an error when using non blocking socket. It just
> means nothing is ready to be read.
> Instead of Receiv
www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Bevan Edwards" <[EMAIL PROTECTED]>
To: "ICS support mailing"
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 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 a