[twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread daniel cc
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

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread Francois PIETTE
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

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread daniel cc
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

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread RTT
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 OverbyteIcsSrvTcp uses the OverbyteIcsTcpCmd.pas, where you will find the code of the server. The project OverbyteIcsClient7 gives me

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread daniel cc
The OverbyteIcsSrvTcp uses the OverbyteIcsTcpCmd.pas, where you will find the code of the server. Yes, I already knew this. Make sure you have the server running, before you hit the client connect button. Make also sure the client port is set to the same server port. The server port is set

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread RTT
It gives error when clicking the connect button What's the connect error? however, I will be able to fix the errors but, this still doesn't help me much because, I need to be able to send the commands from the server to the client as well. I can find nothing about how to send anything

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread Arno Garrels
daniel, I wish to continue with SSL if there is no difference. SSL is an add-on, so skip that for now, you have to understand the basics first . Now, The project OverbyteIcsSrvTcp has absolutely nothing in inside to help me. I can't find anything about sending or receiving in this

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread daniel cc
Huch? There's method WSocket1DataAvailable that receives data and SendButtonClick that sends strings. There is no such button SendButtonClick in this project -- OverbyteIcsSrvTcp.bdsproj. Are we talking about the same project or is it something which I don't have? TCP/IP requires a

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread Francois PIETTE
I wish to continue with SSL if there is no difference. There is a difference: you introduce something in extra which has a lot of reason not to work. First thing first, start without SSL. The project OverbyteIcsSrvTcp has absolutely nothing in inside to help me. Sure it has ! It accept

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread Francois PIETTE
I need to be able to send the commands from the server to the client as well. Given a server has a lot of client (potentially), how do you select the client you want to communicate with ? Usually a server reply to a command sent by a client, but once the client is connected, the server can

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread daniel cc
Assuming N is the index of the selected client, you send something using this line of code: WSocketServer.Client[N].Send(MyBufAddr, MyBufLnegth); When sending something back to a client having sent a command, you use the sender argument of the dataavailable event. This sender represent

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread daniel cc
Assuming N is the index of the selected client, you send something using this line of code: WSocketServer.Client[N].Send(MyBufAddr, MyBufLnegth); When sending something back to a client having sent a command, you use the sender argument of the dataavailable event. This sender represent the

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread Francois PIETTE
When sending something back to a client having sent a command, you use the sender argument of the dataavailable event. This sender represent the client: TWSocket(Sender).Send(MyBufAddr, MyBufLnegth); I still can't find anything regarding this in existed demos/samples. In the server

Re: [twsocket] SslWSocketServer SslWSocket

2011-01-16 Thread Francois PIETTE
and it doesn't work Please be more specific. What error/exception do you have ? -- 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 -- To unsubscribe or change your settings