Instructions

265 C-Control Pro IDE
© 2013 Conrad Electronic
Sub ETH_DisconnectTCP(sock_id As Byte)
Description
Terminates an open connection.
Parameter
sock_id Socket Index
5.11.9 ETH_GetIPInfo
Ethernet Functions
Syntax
void ETH_GetIPInfo(byte info, byte data[]);
Sub ETH_GetIPInfo(info As Byte, ByRef data As Byte)
Description
Returns Ethernet information in a byte array. The length of the array must be sized to fit the values??. If
DHCP is enabled and the IP address is currently 0.0.0.0, no valid IP address has been assigned by
DHCP yet.
Parameter
info info type
data return array
Info Type
Meaning
Length
EI_IP_ADDR
IP-address
4
EI_NETMASK
netmask
4
EI_GATEWAY
gateway address
4
EI_MACADDR
MAC address
6
5.11.10 ETH_GetStateTCP
Ethernet Functions
Syntax
byte ETH_GetStateTCP(byte sock_id);
Sub ETH_GetStateTCP(sock_id As Byte) As Byte