[Jwap-info] Re:Multi-Homed jWAP
Brought to you by:
mcdmx,
nikobender
|
From: Domingo M. <dom...@zw...> - 2004-07-06 20:39:12
|
Hi Michel,
Thanks for the support. I am going to check your changes. By the way, I a=
lso=20
modified the constructors of the classes CWTPSocket, CWSPSession by mysel=
f=20
and I have tested it for almost a week. I would like to know if your cha=
nges=20
are similar:
************************************************************************
public CWSPSession(InetAddress toAddress, int toPort,
IWSPUpperLayer upperLayer, InetAddress fromAddress, boolean verbo=
se)=20
throws SocketException {
if ((upperLayer !=3D null) && upperLayer instanceof IWSPUpperLaye=
r2) {
this.version =3D 2;
} else {
this.version =3D 1;
}
// Make sure that the logging system is initialized
Logger.initLogSystem(verbose);
this.upperlayer =3D upperLayer;
socket =3D new CWTPSocket(toAddress, toPort, this, fromAddress);
// there can not be any session with the same peer address quadru=
plet!
}
public CWTPSocket(InetAddress toAddress, int toPort,
IWTPUpperLayer upperLayer, InetAddress fromAddress) throws=20
SocketException {
socket =3D new DatagramSocket(PORT,fromAddress);
socket.setSoTimeout(1000);
this.upperLayer =3D upperLayer;
this.toAddress =3D toAddress;
this.toPort =3D toPort;
this.setName("CWTPSocket-"+toAddress.getHostAddress()+":"+toPort)=
;
this.start();
}
*************************************************************************=
************
On the other hand, today I was thinking in the WAP Gateway redirection...=
It=20
seems to me that I should modified not only these constructors by also th=
e=20
code associated to the redirection (which must start another Socket and I=
=20
imagine it uses the "old-way" through a default IP address).
I am going to post another question to the Forum but under another subjec=
t (It=20
is related with problems when the target URL has a header with another UR=
L, a=20
"URL redirection") . I hope to get your support again.
Sincerely,
Domingo Morales.
|