public interface WebServer
This interface needs to be implemented by webservers.
Method Summary | |
---|---|
void |
init(int nodeNum,
TransportLayer transport,
int portNum)
Initialization info. |
void |
receiveSTTPRequest(TransportPacket packet)
The simulator calls this method with a packet that has the one and only STTP protocol packet - to request a file. |
void |
sendData()
The simulator calls this regularly to ask the webserver to send any un-sent data to the transport layer below. |
Method Detail |
---|
void init(int nodeNum, TransportLayer transport, int portNum)
nodeNum
- an int
valuetransport
- a TransportLayer
valueportNum
- an int
valuevoid receiveSTTPRequest(TransportPacket packet)
packet
- a TransportPacket
valuevoid sendData()