This function writes data to TCP connection.
|
Parameters |
Description |
|
buf |
[IN] The data to write. |
|
len |
[IN] The data length. |
If successful, it returns the write data size.
If fails, the error code can be found in VM_TCP_RESULT.
void hl_tcp_conn_cb(VM_TCP_HANDLE handle, VM_TCP_EVENT event) { VMINT nwrite; switch (event) { case VM_TCP_EVENT_CONNECTED: nwrite = vm_tcp_write( handle, "GET www.mediatek.com HTTP/1.1rnHost: www.mediatek.comrnrn", strlen("GET www.mediatek.com HTTP/1.1rnHost: www.mediatek.comrnrn")); break; default: return; } return; }
vmtcp.h
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.