Receive Data from Socket Object
tcp_client
txt = socko:recv( [max] )
Parameter | Type | Description |
---|---|---|
max |
integer | Maximum number of bytes |
Returns | Type | Description |
---|---|---|
txt |
string | Data from socket. |
udp
txt, peerip, peerport, localip, intf = socko:recv( [max] )
Parameter | Type | Description |
---|---|---|
max |
integer | Maximum number of bytes |
Returns | Type | Description |
---|---|---|
txt |
string | Data from socket. |
peerip |
string | IP address of the remote device |
peerport |
integer | Remote device's UDP port |
localip |
string | IP address received on |
intf |
string | Interface name |