1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Fixed for updated API.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7394 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2007-03-07 19:27:03 +00:00 committed by matt
parent 68901d0890
commit 0d2ed0ed96

View file

@ -72,11 +72,12 @@
XMPPConnection.DEBUG_ENABLED = "Yes".equals(debug); XMPPConnection.DEBUG_ENABLED = "Yes".equals(debug);
try { try {
if ("No".equals(ssl)) { if ("No".equals(ssl)) {
conn = new XMPPConnection(host, Integer.parseInt(port)); conn = new XMPPConnection(host);
} }
else { else {
conn = new SSLXMPPConnection(host, Integer.parseInt(port)); conn = new XMPPConnection(host);
} }
conn.connect();
// Add listener for messages (offline messages will be listen here) // Add listener for messages (offline messages will be listen here)
// Set the roster subscription mode to use // Set the roster subscription mode to use
@ -126,8 +127,9 @@
Information</b> </td> Information</b> </td>
</tr> </tr>
<tr> <tr>
<td> <table width=100% border=0> <td><form action="login.jsp" method="post">
<form action="login.jsp" method="post"> <table width=100% border=0>
<tr> <tr>
<td class=text id=black height=16>Host:</td> <td class=text id=black height=16>Host:</td>
<td><input type="text" name="host" size="30" maxlength="50" value="<%= (host!=null)?host:"" %>"></td> <td><input type="text" name="host" size="30" maxlength="50" value="<%= (host!=null)?host:"" %>"></td>
@ -177,8 +179,8 @@
<tr align="center"> <tr align="center">
<td colspan="2"> <input type="submit" value="Login"> </td> <td colspan="2"> <input type="submit" value="Login"> </td>
</tr> </tr>
</form>
</table></td> </table></form></td>
</tr> </tr>
</table></td> </table></td>
<td width="20%">&nbsp;</td> <td width="20%">&nbsp;</td>