📄 csendidmef.html
字号:
<PRE>
public javax.swing.JButton <B>b_cancel</B></PRE>
<DL>
<DD>Button Stop. When clicked stop to send message to the connected JIDX Client peer.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="b_cancel2"><!-- --></A><H3>
b_cancel2</H3>
<PRE>
public javax.swing.JButton <B>b_cancel2</B></PRE>
<DL>
<DD>Button Cancel. If is sending then stop sending and close the window else close the window.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="filedialog_load"><!-- --></A><H3>
filedialog_load</H3>
<PRE>
java.awt.FileDialog <B>filedialog_load</B></PRE>
<DL>
<DD>Open file dialog choose which file will be sent.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="file_in"><!-- --></A><H3>
file_in</H3>
<PRE>
java.io.FileInputStream <B>file_in</B></PRE>
<DL>
<DD>File content will be read out through this FileInputStream.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="f"><!-- --></A><H3>
f</H3>
<PRE>
java.io.File <B>f</B></PRE>
<DL>
<DD>The opened file.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="file_size"><!-- --></A><H3>
file_size</H3>
<PRE>
long <B>file_size</B></PRE>
<DL>
<DD>The opened file length.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="stop_send"><!-- --></A><H3>
stop_send</H3>
<PRE>
public boolean <B>stop_send</B></PRE>
<DL>
<DD>Whether the sending has been stopped.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="reject_receive"><!-- --></A><H3>
reject_receive</H3>
<PRE>
public boolean <B>reject_receive</B></PRE>
<DL>
<DD>Whether the peer rejects to receive the file.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="c_cff"><!-- --></A><H3>
c_cff</H3>
<PRE>
<A HREF="CconnFriendFrame.html" title="class in <Unnamed>">CconnFriendFrame</A> <B>c_cff</B></PRE>
<DL>
<DD>Point to CconnFriendFrame which is initialized by CaddFriendFrame.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="sf"><!-- --></A><H3>
sf</H3>
<PRE>
<A HREF="Csocket.html" title="class in <Unnamed>">Csocket</A> <B>sf</B></PRE>
<DL>
<DD>Socket to connect to the peer.If successful then send file through this socket.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="sendfile_t"><!-- --></A><H3>
sendfile_t</H3>
<PRE>
java.lang.Thread <B>sendfile_t</B></PRE>
<DL>
<DD>Thread used by sf to send file.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="CsendIDMEF(CconnFriendFrame)"><!-- --></A><H3>
CsendIDMEF</H3>
<PRE>
<B>CsendIDMEF</B>(<A HREF="CconnFriendFrame.html" title="class in <Unnamed>">CconnFriendFrame</A> cff)</PRE>
<DL>
<DL>
<DT><B>Parameters:</B><DD><CODE>cff</CODE> - When JIDX Client want to send XML IDMEF file to one peer,he/she will open CaddFriendFrame to find the peer and open cff. From cff he/she can open CsendIDMEF to send file.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="actionPerformed(java.awt.event.ActionEvent)"><!-- --></A><H3>
actionPerformed</H3>
<PRE>
public void <B>actionPerformed</B>(java.awt.event.ActionEvent e)</PRE>
<DL>
<DD>Listen button Open, Clear, Send, Stop, Cancel's action.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>actionPerformed</CODE> in interface <CODE>java.awt.event.ActionListener</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="prepare_send(int)"><!-- --></A><H3>
prepare_send</H3>
<PRE>
public void <B>prepare_send</B>(int i)</PRE>
<DL>
<DD>If this client want to send file to a peer, he/she first send message, if the peer accept the request, the peer will send a port number. Then this client will try to connect the peer through this port.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The peer's opened port through which to receive the file.</DL>
</DD>
</DL>
<HR>
<A NAME="send_file()"><!-- --></A><H3>
send_file</H3>
<PRE>
public void <B>send_file</B>()</PRE>
<DL>
<DD>If this client successfully connect to the peer then the peer will tell him/her to send file. When this client receive the message, he/she will call send_file()to start the send file thread--sendfile_t to transmit the file.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="run()"><!-- --></A><H3>
run</H3>
<PRE>
public void <B>run</B>()</PRE>
<DL>
<DD>This thread continued to transimit the file until over or stopped by peer.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CsendIDMEF.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="CregisterThread.html" title="class in <Unnamed>"><B>PREV CLASS</B></A>
<A HREF="CserverFrame.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html?CsendIDMEF.html" target="_top"><B>FRAMES</B></A>
<A HREF="CsendIDMEF.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.awt.Frame">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -