[twsocket] SslWSocket processing data

2011-01-18 Thread daniel cc
Hi guys, If the SslWSocket sends command such as: “Time”, SslWSocketServer is processing it and responding by giving the time to the client (this what I have noticed in the samples). Now, Can the same thing be done in the other way around? SslWSocketServer sends command such as : ”Time”, SslWSock

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
Hi Angus, You probably only want to send a reboot PC command once... Yes, commands (just few) will be sent real seldom (once or twice in a week). Communication will be made mostly by the client ans server will respond by doing very small things. It is actually faster to use FClientNo as per

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread Angus Robertson - Magenta Systems Ltd
> What is the "MyPeerAddr"? --> Integer? You can work that out yourself, look at what type GetPeerAddr returns. > If you mean a database table, Not necessarily, it can a table in memory, made up of records, which you use to keep track of all clients from which you update your GUI and keep track

Re: [twsocket] ANN: Magenta Systems Mail Queue Component

2011-01-18 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: > Free download from: http://www.magsys.co.uk/delphi/magics.asp Sounds very interesting, thanks for giving it to the community. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cg

Re: [twsocket] SslWSocketServer & SslWSocket

2011-01-18 Thread daniel cc
Hi Marc, Your code works perfectly :) It created the "UniqueID" for the client and I believe this just was what I needed. Now I will be able to select the client of my choice with this ID. I will do the rest and start testing. Thanks a lot for the great help :) Best regards -Original Mess

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
Hi Angus, I am very much pleased and I thank you very much for trying to help me out. << Sorry, but you really are out of your depth here, you need to understand simple programming first. We can not write your programme for you. Yes, I do have limited knowledge for now but, I am learning all

[twsocket] ANN: Magenta Systems Mail Queue Component

2011-01-18 Thread Angus Robertson - Magenta Systems Ltd
Free download from: http://www.magsys.co.uk/delphi/magics.asp This new ICS component has been used in our ComCap application to send emails for the last three months. Magenta Systems Mail Queue Component has two main benefits over a simple TSslSmtpCli component: it supports extended retries ov

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread RTT
On 18-01-2011 13:50, daniel cc wrote: Clients are not having static IP and the place where clients are gonna be doesn't allow top open any ports for incoming trafic etc. Connecting from the server to the server placed in clients isn't going to work in my case or perhaps I am mistaking? If t

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread Angus Robertson - Magenta Systems Ltd
> I have been trying to use the IP (PEERADDR) and the port (PEERPORT) > in this, > SslWSocketServer1.Client[0].SendStr(ledSendCommand.Text + #13 + > #10); for trying to send with no success. > The command is gonna be typed into a "TLabelEdit" component which > is text and sending requires intege

Re: [twsocket] SslWSocketServer & SslWSocket

2011-01-18 Thread Marc Charbonneau
> Thanks Marc, > Have been playing 2 days with this and still can't find out the way how  to > do. Ok, here's a simple solution with TcpSrv demo : In TTcpSrvForm declaration, in the private part, add this FClientNo : integer; Now, go in procedure TTcpSrvForm.WSocketServer1ClientConnect and

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
That's why you need a server socket listening at each client computer. Every time the a client computer starts, connect to the Server computer and introduce himself. Hey, my name is "Earl" and I'm listening to your commands at this "Address". I will report to you any errors occurring here. With

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread RTT
On 18-01-2011 11:25, daniel cc wrote: So you build your combobox, wait 10 seconds, one client disconnects, all the clients numbers reduce by one and your combobox is out of date. When you try to send a command to one of them it may be the wrong client or you'll get an exception because there ar

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
My packets looked like this: TxData: CV121RML-0002|NN130120080707-170202|20080707-170204|| RxData: CS010PC08|20080707-160204|0|RML-0002| Thanks Angus, I understand what you mean but this unfortunately is too much for me :( I can't make/handle this because I don't even know how to handle th

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread Angus Robertson - Magenta Systems Ltd
> I can't find the message you have sent with the computername in the > packet fields. Last Thursday morning. My packets looked like this: TxData: CV121RML-0002|NN130120080707-170202|20080707-170204|| RxData: CS010PC08|20080707-160204|0|RML-0002| where CV was a client ident, CS server ide

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
Thanks Angus, So you build your combobox, wait 10 seconds, one client disconnects, all the clients numbers reduce by one and your combobox is out of date. When you try to send a command to one of them it may be the wrong client or you'll get an exception because there are fewer clients. I didn

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread Angus Robertson - Magenta Systems Ltd
> If I have many clients connected and I have all the clients are > listed in a "TLISTBOX" or in "COMBOBOX" and I just want to select > one of them and send the command. So you build your combobox, wait 10 seconds, one client disconnects, all the clients numbers reduce by one and your combobox i

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
Thanks Angus, I don't know if we are at the same track, The reason of trying to get the number of the client is: To use it for sending commands to the client as following, "SslWSocketServer1.Client[0].SendStr(ledSendCommand.Text + #13 + #10);" The idea is not the answer when the client asks som

Re: [twsocket] TWSocket and Client number

2011-01-18 Thread Angus Robertson - Magenta Systems Ltd
> What do I need to do to get the client number into the server? You don't because the client number changes each time a new connection is added or closed. You have to lookup the number each time you need it. Or design your application so it's not needed. Look at the FTP server component and i

[twsocket] TWSocket and Client number

2011-01-18 Thread daniel cc
Hello, What do I need to do to get the client number into the server? As you can see here, I get the computer’s name, IP and Port but the client number is missing. --- procedure TSimpleSslServerForm.SslWSocketServer1Client