DccChat.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.4.2) on Mon Dec 14 20:07:23 GMT 2009 -->
  6. <TITLE>
  7. DccChat (PircBot 1.5.0 - Java IRC API Bot Framework)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.jibble.pircbot.DccChat class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../pircbot-style.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. parent.document.title="DccChat (PircBot 1.5.0 - Java IRC API Bot Framework)";
  15. }
  16. </SCRIPT>
  17. </HEAD>
  18. <BODY BGCOLOR="white" onload="windowTitle();">
  19. <!-- ========= START OF TOP NAVBAR ======= -->
  20. <A NAME="navbar_top"><!-- --></A>
  21. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  22. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  23. <TR>
  24. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  25. <A NAME="navbar_top_firstrow"><!-- --></A>
  26. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  27. <TR ALIGN="center" VALIGN="top">
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DccChat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  35. </TR>
  36. </TABLE>
  37. </TD>
  38. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  39. <b>PircBot Java IRC Bot</b></EM>
  40. </TD>
  41. </TR>
  42. <TR>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. &nbsp;<A HREF="../../../org/jibble/pircbot/Colors.html" title="class in org.jibble.pircbot"><B>PREV CLASS</B></A>&nbsp;
  45. &nbsp;<A HREF="../../../org/jibble/pircbot/DccFileTransfer.html" title="class in org.jibble.pircbot"><B>NEXT CLASS</B></A></FONT></TD>
  46. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  47. <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  48. &nbsp;<A HREF="DccChat.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  49. &nbsp;<SCRIPT type="text/javascript">
  50. <!--
  51. if(window==top) {
  52. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  53. }
  54. //-->
  55. </SCRIPT>
  56. <NOSCRIPT>
  57. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  58. </NOSCRIPT>
  59. </FONT></TD>
  60. </TR>
  61. <TR>
  62. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  63. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  64. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  65. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  66. </TR>
  67. </TABLE>
  68. <A NAME="skip-navbar_top"></A>
  69. <!-- ========= END OF TOP NAVBAR ========= -->
  70. <HR>
  71. <!-- ======== START OF CLASS DATA ======== -->
  72. <H2>
  73. <FONT SIZE="-1">
  74. org.jibble.pircbot</FONT>
  75. <BR>
  76. Class DccChat</H2>
  77. <PRE>
  78. <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
  79. <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jibble.pircbot.DccChat</B>
  80. </PRE>
  81. <HR>
  82. <DL>
  83. <DT>public class <B>DccChat</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
  84. <P>
  85. This class is used to allow the bot to interact with a DCC Chat session.
  86. <P>
  87. <P>
  88. <DL>
  89. <DT><B>Since:</B></DT>
  90. <DD>0.9c</DD>
  91. <DT><B>Version:</B></DT>
  92. <DD>1.5.0 (Build time: Mon Dec 14 20:07:17 2009)</DD>
  93. <DT><B>Author:</B></DT>
  94. <DD>Paul James Mutton,
  95. <a href="http://www.jibble.org/">http://www.jibble.org/</a></DD>
  96. </DL>
  97. <HR>
  98. <P>
  99. <!-- ======== NESTED CLASS SUMMARY ======== -->
  100. <!-- =========== FIELD SUMMARY =========== -->
  101. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  102. <!-- ========== METHOD SUMMARY =========== -->
  103. <A NAME="method_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TD COLSPAN=2><FONT SIZE="+2">
  107. <B>Method Summary</B></FONT></TD>
  108. </TR>
  109. <TR BGCOLOR="white" CLASS="TableRowColor">
  110. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  111. <CODE>&nbsp;void</CODE></FONT></TD>
  112. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#accept()">accept</A></B>()</CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accept this DccChat connection.</TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  118. <CODE>&nbsp;void</CODE></FONT></TD>
  119. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#close()">close</A></B>()</CODE>
  120. <BR>
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the DCC Chat connection.</TD>
  122. </TR>
  123. <TR BGCOLOR="white" CLASS="TableRowColor">
  124. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  125. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/BufferedReader.html" title="class or interface in java.io">BufferedReader</A></CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getBufferedReader()">getBufferedReader</A></B>()</CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the BufferedReader used by this DCC Chat.</TD>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/BufferedWriter.html" title="class or interface in java.io">BufferedWriter</A></CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getBufferedWriter()">getBufferedWriter</A></B>()</CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the BufferedReader used by this DCC Chat.</TD>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  139. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  140. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getHostname()">getHostname</A></B>()</CODE>
  141. <BR>
  142. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the hostname of the DCC Chat initiator.</TD>
  143. </TR>
  144. <TR BGCOLOR="white" CLASS="TableRowColor">
  145. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  146. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  147. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getLogin()">getLogin</A></B>()</CODE>
  148. <BR>
  149. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the login of the DCC Chat initiator.</TD>
  150. </TR>
  151. <TR BGCOLOR="white" CLASS="TableRowColor">
  152. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  153. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  154. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getNick()">getNick</A></B>()</CODE>
  155. <BR>
  156. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the nick of the other user taking part in this file transfer.</TD>
  157. </TR>
  158. <TR BGCOLOR="white" CLASS="TableRowColor">
  159. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  160. <CODE>&nbsp;long</CODE></FONT></TD>
  161. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getNumericalAddress()">getNumericalAddress</A></B>()</CODE>
  162. <BR>
  163. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the address of the sender as a long.</TD>
  164. </TR>
  165. <TR BGCOLOR="white" CLASS="TableRowColor">
  166. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  167. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD>
  168. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#getSocket()">getSocket</A></B>()</CODE>
  169. <BR>
  170. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the raw Socket used by this DCC Chat.</TD>
  171. </TR>
  172. <TR BGCOLOR="white" CLASS="TableRowColor">
  173. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  174. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  175. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#readLine()">readLine</A></B>()</CODE>
  176. <BR>
  177. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the next line of text from the client at the other end of our DCC Chat
  178. connection.</TD>
  179. </TR>
  180. <TR BGCOLOR="white" CLASS="TableRowColor">
  181. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  182. <CODE>&nbsp;void</CODE></FONT></TD>
  183. <TD><CODE><B><A HREF="../../../org/jibble/pircbot/DccChat.html#sendLine(java.lang.String)">sendLine</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;line)</CODE>
  184. <BR>
  185. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a line of text to the client at the other end of our DCC Chat
  186. connection.</TD>
  187. </TR>
  188. </TABLE>
  189. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  190. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  191. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  192. <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
  193. </TR>
  194. <TR BGCOLOR="white" CLASS="TableRowColor">
  195. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  196. </TR>
  197. </TABLE>
  198. &nbsp;
  199. <P>
  200. <!-- ============ FIELD DETAIL =========== -->
  201. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  202. <!-- ============ METHOD DETAIL ========== -->
  203. <A NAME="method_detail"><!-- --></A>
  204. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  205. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  206. <TD COLSPAN=1><FONT SIZE="+2">
  207. <B>Method Detail</B></FONT></TD>
  208. </TR>
  209. </TABLE>
  210. <A NAME="accept()"><!-- --></A><H3>
  211. accept</H3>
  212. <PRE>
  213. public void <B>accept</B>()
  214. throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
  215. <DL>
  216. <DD>Accept this DccChat connection.
  217. <P>
  218. <DD><DL>
  219. <DT><B>Throws:</B>
  220. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DT><B>Since:</B></DT>
  221. <DD>1.2.0</DD>
  222. </DL>
  223. </DD>
  224. </DL>
  225. <HR>
  226. <A NAME="readLine()"><!-- --></A><H3>
  227. readLine</H3>
  228. <PRE>
  229. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>readLine</B>()
  230. throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
  231. <DL>
  232. <DD>Reads the next line of text from the client at the other end of our DCC Chat
  233. connection. This method blocks until something can be returned.
  234. If the connection has closed, null is returned.
  235. <P>
  236. <DD><DL>
  237. <DT><B>Returns:</B><DD>The next line of text from the client. Returns null if the
  238. connection has closed normally.
  239. <DT><B>Throws:</B>
  240. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an I/O error occurs.</DL>
  241. </DD>
  242. </DL>
  243. <HR>
  244. <A NAME="sendLine(java.lang.String)"><!-- --></A><H3>
  245. sendLine</H3>
  246. <PRE>
  247. public void <B>sendLine</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;line)
  248. throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
  249. <DL>
  250. <DD>Sends a line of text to the client at the other end of our DCC Chat
  251. connection.
  252. <P>
  253. <DD><DL>
  254. <DT><B>Parameters:</B><DD><CODE>line</CODE> - The line of text to be sent. This should not include
  255. linefeed characters.
  256. <DT><B>Throws:</B>
  257. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an I/O error occurs.</DL>
  258. </DD>
  259. </DL>
  260. <HR>
  261. <A NAME="close()"><!-- --></A><H3>
  262. close</H3>
  263. <PRE>
  264. public void <B>close</B>()
  265. throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
  266. <DL>
  267. <DD>Closes the DCC Chat connection.
  268. <P>
  269. <DD><DL>
  270. <DT><B>Throws:</B>
  271. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an I/O error occurs.</DL>
  272. </DD>
  273. </DL>
  274. <HR>
  275. <A NAME="getNick()"><!-- --></A><H3>
  276. getNick</H3>
  277. <PRE>
  278. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNick</B>()</PRE>
  279. <DL>
  280. <DD>Returns the nick of the other user taking part in this file transfer.
  281. <P>
  282. <DD><DL>
  283. <DT><B>Returns:</B><DD>the nick of the other user.</DL>
  284. </DD>
  285. </DL>
  286. <HR>
  287. <A NAME="getLogin()"><!-- --></A><H3>
  288. getLogin</H3>
  289. <PRE>
  290. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLogin</B>()</PRE>
  291. <DL>
  292. <DD>Returns the login of the DCC Chat initiator.
  293. <P>
  294. <DD><DL>
  295. <DT><B>Returns:</B><DD>the login of the DCC Chat initiator. null if we sent it.</DL>
  296. </DD>
  297. </DL>
  298. <HR>
  299. <A NAME="getHostname()"><!-- --></A><H3>
  300. getHostname</H3>
  301. <PRE>
  302. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getHostname</B>()</PRE>
  303. <DL>
  304. <DD>Returns the hostname of the DCC Chat initiator.
  305. <P>
  306. <DD><DL>
  307. <DT><B>Returns:</B><DD>the hostname of the DCC Chat initiator. null if we sent it.</DL>
  308. </DD>
  309. </DL>
  310. <HR>
  311. <A NAME="getBufferedReader()"><!-- --></A><H3>
  312. getBufferedReader</H3>
  313. <PRE>
  314. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/BufferedReader.html" title="class or interface in java.io">BufferedReader</A> <B>getBufferedReader</B>()</PRE>
  315. <DL>
  316. <DD>Returns the BufferedReader used by this DCC Chat.
  317. <P>
  318. <DD><DL>
  319. <DT><B>Returns:</B><DD>the BufferedReader used by this DCC Chat.</DL>
  320. </DD>
  321. </DL>
  322. <HR>
  323. <A NAME="getBufferedWriter()"><!-- --></A><H3>
  324. getBufferedWriter</H3>
  325. <PRE>
  326. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/BufferedWriter.html" title="class or interface in java.io">BufferedWriter</A> <B>getBufferedWriter</B>()</PRE>
  327. <DL>
  328. <DD>Returns the BufferedReader used by this DCC Chat.
  329. <P>
  330. <DD><DL>
  331. <DT><B>Returns:</B><DD>the BufferedReader used by this DCC Chat.</DL>
  332. </DD>
  333. </DL>
  334. <HR>
  335. <A NAME="getSocket()"><!-- --></A><H3>
  336. getSocket</H3>
  337. <PRE>
  338. public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>getSocket</B>()</PRE>
  339. <DL>
  340. <DD>Returns the raw Socket used by this DCC Chat.
  341. <P>
  342. <DD><DL>
  343. <DT><B>Returns:</B><DD>the raw Socket used by this DCC Chat.</DL>
  344. </DD>
  345. </DL>
  346. <HR>
  347. <A NAME="getNumericalAddress()"><!-- --></A><H3>
  348. getNumericalAddress</H3>
  349. <PRE>
  350. public long <B>getNumericalAddress</B>()</PRE>
  351. <DL>
  352. <DD>Returns the address of the sender as a long.
  353. <P>
  354. <DD><DL>
  355. <DT><B>Returns:</B><DD>the address of the sender as a long.</DL>
  356. </DD>
  357. </DL>
  358. <!-- ========= END OF CLASS DATA ========= -->
  359. <HR>
  360. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  361. <A NAME="navbar_bottom"><!-- --></A>
  362. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  363. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  364. <TR>
  365. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  366. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  367. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  368. <TR ALIGN="center" VALIGN="top">
  369. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  370. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  371. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DccChat.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  372. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  373. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  374. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  375. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  376. </TR>
  377. </TABLE>
  378. </TD>
  379. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  380. <b>PircBot Java IRC Bot</b></EM>
  381. </TD>
  382. </TR>
  383. <TR>
  384. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  385. &nbsp;<A HREF="../../../org/jibble/pircbot/Colors.html" title="class in org.jibble.pircbot"><B>PREV CLASS</B></A>&nbsp;
  386. &nbsp;<A HREF="../../../org/jibble/pircbot/DccFileTransfer.html" title="class in org.jibble.pircbot"><B>NEXT CLASS</B></A></FONT></TD>
  387. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  388. <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
  389. &nbsp;<A HREF="DccChat.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  390. &nbsp;<SCRIPT type="text/javascript">
  391. <!--
  392. if(window==top) {
  393. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  394. }
  395. //-->
  396. </SCRIPT>
  397. <NOSCRIPT>
  398. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  399. </NOSCRIPT>
  400. </FONT></TD>
  401. </TR>
  402. <TR>
  403. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  404. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  405. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  406. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  407. </TR>
  408. </TABLE>
  409. <A NAME="skip-navbar_bottom"></A>
  410. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  411. <HR>
  412. </BODY>
  413. </HTML>