Instructions
268Libraries
© 2013 Conrad Electronic
Sub ETH_SendTCP(sock_id As Byte, ByRef buf As Byte, len As Word) As Byte
Description
Sends TCP data to an open TCP/IP connection.
The sock_id parameter is returned either by ETH_ConnectTCP, or you get it as info [0] value of
ETH_CheckReceiveBuf.
Parameter
sock_id socket index
buf address of TCP data buffer
len length of TCP data
Return Parameter
0 if no error
5.11.15 ETH_SendUDP
Ethernet Functions
Syntax
void ETH_SendUDP(dword ip, word port, byte buf[], word len);
Sub ETH_SendUDP(ip As ULong, port As Word, ByRef buf As Byte, len As
Word)
Description
Sends a UDP packet to an IP address and port.
Parameter
ip IP-address
port UDP port
buf address of packet buffer
len length of UDP packet
5.11.16 ETH_SetConnBuf
Ethernet Functions
Syntax
void ETH_SetConnBuf(byte buf[], word size, byte TCP_conn);