Customizing TCP Sockets
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Offset | Size | Type |
0 | 1 | '*' (i.e., the ASCII literal *) |
1 | 1 | Frame Type |
2 | 2 | Sequence Number |
4 | 2 | Data Length |
Code | Frame Type |
1 | SIGNON |
2 | DATA |
3 | ERROR (For future use) |
4 | SIGNOFF (For future use) |
5 | KEEP_ALIVE (For future use) |
Socket
class uses streams, so we need
to take that into considerationSocket
Socket
,
we're adding functionality to the stream
Use a Factory