My application is a reverse to the normal "client Server" communications in that it needs to work in the reverse method.
The normal client/server system works where the client will initiate a call to the server the server then responds.
I need to have the server initiate the call to the client where the server will use the same connection each time.
There are multiple clients each with their own Ip address.
I should explain, the clients will be industrial print engines where the operator will turn them on and then run the software on a PC to communicate with them.
The printers do not send any command or handshaking until a command is sent to them, they will then reply to the command.
I want to have the clients listed on the server where I can initiate a call to each printer.
I would like to find a way to manually or have preset the client details (ipaddress, port,etc) on the server in the clientlist?
Regards,
Glenn Sharp
<Email removed>
What I have tried:
I have a client/server system running where I can communicate via hyperterm to initiate a connection.
so if I start a connection I can send the commands I need to send that would normally go to the printer.
I am using a "ClientList" to hold the clients as they connect.
I need to manually add a client to the clientlist, it is this part I cannot work out how to do.
Private listClient As TcpClient
Sub New(ByVal forClient As TcpClient)
listClient = forClient
listClient.GetStream.BeginRead(New Byte() {0}, 0, 0, AddressOf ReadAllClient, Nothing)
End Sub