I am using the following:
ccs 6.1.2
TIRTOS 2.16.0.08,
compiler 5.2.7 and
XDC 3.31.1333
TM4C1294NCPD
TI network stack
I am running a TCP/IP socket server on the Tiva and my question is when a TCP/IP client connects, how can I get the IP address and MAC address of the client when the client connects?
Below is code where the accept
/* AF_INET family (IPv4) Socket address data structure. */
struct sockaddr_in {
UINT16 sin_family; /* address family */
UINT16 sin_port; /* port */
struct in_addr sin_addr;
INT8 sin_zero[8]; /* fixed length address value */
};
void connectSocket(SOCKET_INFO *sock)
{
struct sockaddr_in client_addr;
int addrlen=sizeof(client_addr);
sock->