1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/**
* TCPEvent.h: is a container for events created through a typical TCP session. Some
* events are generated during the negotiation of a connection, whilst others are generated when
* data is received or when data is sent and the output buffer is ready for writing to again. The
* following events are supported:
*
* <ol>
*
* <li> <bf>ACCEPT:</bf> this is generated when a server receives a SYN from a client to request
* a connection. An application normally responds by invoking the accept() method call in
* order to accept the incoming connection request.
*
* <li> <bf>CONNECTED:</bf> This is generated on the client once they receive the ACK in response to
* a SYN connection request. Once the ACK is returned from the server, it is assumed that the
* server has accepted the connection. A connected event is also fired after a server has accepted
* a connection.
*
* <li> <bf>SEND:</bf> a send event is generated for a client or serv er to indicate that the output buffer has
* been emptied and is ready to accomodate new data i.e. the client or server can now SEND data.
*
* <li> <bf>RECEIVE:</bf> a RECEIVE event is generated when data has been received at the client or server.
*
* <li> <bf>DISCONNECT:</bf> is generated when a socket has been disconnected.
*
* </ol>
*
* Created by Ian Taylor on 11/01/2007.
*
*/
class TCPEvent ;
/**
* TCPSocketAgentListener.h
* FullerTCP
*
* Created by Ian Taylor on 05/01/2007.
*
*/
class TCPSocketAgentListener ;
// _TCPEvent