P
panatha
I am trying to implement a consumer-producer scenario communicating
via HTTP pipelining.
Can anyone talk me through some questions that i have regarding my
problem?
I have the consumer side the socketsend class that when a message-
request is ready it sends it through the socket ,that the the
socketserver class that manages the sockets, starts.
Now i have the HttpServer and the HTTPSend classes as well. The first
class manages the opening and closing of the connection and the second
class sends or receives.
Now my questions are:
1) do i have to produce multiple messages at the same time and just
call the outputstream for example to send them? or do i have to do
something else?
2) i am not sure if i understood correctly the classes that java.sun
provide us cause i think that the socket classes will implement the
http pipelining and not the http classes.
3) would it be a solution to open multiple sockets at the same time
and send and receive via those or i will have a problem opening many
sockets with the same port cause the port is predefined by the
consumer and the producer in order to communicate and exchange
messages, so it can not be changed.
Please if there is anyone that has previous experience with such
problems please help me.
thank you in advance
via HTTP pipelining.
Can anyone talk me through some questions that i have regarding my
problem?
I have the consumer side the socketsend class that when a message-
request is ready it sends it through the socket ,that the the
socketserver class that manages the sockets, starts.
Now i have the HttpServer and the HTTPSend classes as well. The first
class manages the opening and closing of the connection and the second
class sends or receives.
Now my questions are:
1) do i have to produce multiple messages at the same time and just
call the outputstream for example to send them? or do i have to do
something else?
2) i am not sure if i understood correctly the classes that java.sun
provide us cause i think that the socket classes will implement the
http pipelining and not the http classes.
3) would it be a solution to open multiple sockets at the same time
and send and receive via those or i will have a problem opening many
sockets with the same port cause the port is predefined by the
consumer and the producer in order to communicate and exchange
messages, so it can not be changed.
Please if there is anyone that has previous experience with such
problems please help me.
thank you in advance