base,dev: enable client/server socket for ethertap
Review Request #2910 - Created June 23, 2015 and discarded
| Information | |
|---|---|
| Mohammad Alian | |
| gem5 | |
| default | |
| 2909 | |
| 2914 | |
| Reviewers | |
| Default | |
changesets:10876:9e7175394c3c
base,dev: enable client/server socket for ethertapThis patch adds ConnectSocket class to "base/socket". This act like a client
socket that connects to a server on the specified "port" and "ip".Also, it adds a new function "listenTap" to ListenSocket class. The usage of
this function is in pd-gem5 extenstion where we instantiate several ethertap
object for ethernet switch. "listenTap" function is called by the first instant of
ethertap. It initializes "fd_static", then other instants of ethertap does not
need to create a new socket and just accept incoming connection by calling
"acceptTap" function
Description: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+247 -25) |
