Hi Francois,
Thanks for the response.
I wish to continue with SSL if there is no difference.

This is the last message I have received from you regarding,
------------------------------------------------------------------------------------------------------------
Please start by fully understanding OverbyteIcsSrvTcp and OverbyteIcsClient7
samples. Forget about SSL right now, you'll come back to it once you master
the basics.

Ask all questions you need to fully understand OverbyteIcsSrvTcp and
OverbyteIcsClient7 samples. The OnDataAvailable handler is "procedure
TTcpDaemon.ClientDataAvailable" and in "procedure
TCli7Form.WSocket1DataAvailable".
-------------------------------------------------------------------------------------------------------------
Now,
The project "OverbyteIcsSrvTcp" has absolutely nothing in inside to help me. I can't find anything about sending or receiving in this project.

The project "OverbyteIcsClient7" gives me nothing else but errors saying --> Socket not connected!


This is all what I can see in this project, which I already have tryed to use with no success.
----------------------------------------------------------------------------------------------------------------------------------------------------------
procedure TCli7Form.WSocket1DataAvailable(
    Sender  : TObject;
    ErrCode : Word);
var
   Buf : array [0..255] of AnsiChar;
   Len : Integer;
begin
   Len := TCustomLineWSocket(Sender).Receive(@Buf, Sizeof(Buf) - 1);
   if Len <= 0 then
       Exit;
   Buf[Len] := #0;
   if not WSocket1.LineMode then
       { Normal mode, data is just a buffer with all caracters }
       Display('DataAvailable (' + IntToStr(Len) +' bytes): ''' +
               String(StrPas(Buf)) + '''')
   else begin
       { Line mode, buffer contains exactly one line, terminated by the }
       { LineEnd string, unless our buffer is too small in which case   }
       { the line is truncated. We'll get the end of line on the next   }
       { call to Receive.                                               }
       Display('Line: ''' + RemoveEndOfLine(String(StrPas(Buf))) + '''');
   end;
end;
------------------------------------------------------------------------------------------------------------------------





-----Original Message----- From: Francois PIETTE
Sent: Sunday, January 16, 2011 7:08 PM
To: ICS support mailing
Subject: Re: [twsocket] SslWSocketServer & SslWSocket

Hello daniel,

As I said before, please FIRST do the job WITHOUT SSL. You'll add SSL later.
It is the same component with or without SSL. Simply the SSL code is
compiled with the conditinal symbol "use_ssl" so that application which do
not require SSL stay independent of OpenSSL and stay smaller.

In my last message, I pointed you to two samples. Please start from there.

Regards,
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


----- Original Message ----- From: "daniel cc" <dan...@signedsource.com>
To: "TWSocket" <twsocket@elists.org>
Sent: Sunday, January 16, 2011 5:13 PM
Subject: [twsocket] SslWSocketServer & SslWSocket


Hi all,
I have spent 4 days trying to send and receive data from “SslWSocketServer” to “SslWSocket”, with no success.

What am I trying to do?
I am trying to send and receive data from “SslWSocketServer” to “SslWSocket” (to a connected client/clients),
send and receive data from “SslWSocket” to “SslWSocketServer”.

The data is simple, which is the text of a “TEdit” component for now and later I would like to be able to do the same thing for files.

I have tryed everything available in the component demo library with no success because looks like every demo sample does the things in some ways but none does in the way (this is I believe is the simplest way) I need. It is almost impossible for me to understand and digg up something from the demo samples because I am a beginner.

Please notice!
I need to do this with “SSL” components not with the regular components because I have no need of doing this with regular components.

I would be very pleased if someone could,
- Help me with a sample of this
- Guide me to a right demo/sample where I could perhaps digg up

Thanks in advance

-daniel


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to