Review Board 2.0.15


base,dev: enable client/server socket for ethertap

Review Request #2910 - Created June 23, 2015 and discarded - Latest diff uploaded

Information
Mohammad Alian
gem5
default
2909
2914
Reviewers
Default

changesets:10876:9e7175394c3c
base,dev: enable client/server socket for ethertap

This 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