Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7531/core/protocolsuite/tcp_ip
Modified Files:
Echo_tcp.java
Log Message:
Index: Echo_tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo_tcp.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Echo_tcp.java 27 Nov 2005 09:34:22 -0000 1.4
--- Echo_tcp.java 27 Nov 2005 14:28:22 -0000 1.5
***************
*** 57,61 ****
public void Close() throws TransportLayerException
{
! mParentStack.CloseTCP(this);
}
--- 57,61 ----
public void Close() throws TransportLayerException
{
! mParentStack.FreeTCPApplication(this);
}
***************
*** 92,96 ****
public void Disconnect() throws TransportLayerException {
! mParentStack.freeTCPPort(this);
}
--- 92,97 ----
public void Disconnect() throws TransportLayerException {
! mParentStack.CloseTCP(this);
! //mParentStack.freeTCPPort(this);
}
***************
*** 166,171 ****
Simulation.addLayerInfo(protInfo3);
! //Close();
! //Listen();
}catch(Exception e){
///*TODO*: here to catch
--- 167,172 ----
Simulation.addLayerInfo(protInfo3);
! Disconnect();
! Listen();
}catch(Exception e){
///*TODO*: here to catch
|