root / proj / src / hltp.c @ 267
History | View | Annotate | Download (283 Bytes)
1 | 264 | up20180642 | #include <lcom/lcf.h> |
---|---|---|---|
2 | |||
3 | #include "hltp.h" |
||
4 | |||
5 | #include "nctp.h" |
||
6 | |||
7 | int hltp_send_string(int port, const char *p){ |
||
8 | uint8_t* ptr[] = {p}; |
||
9 | size_t sz[] = {strlen(p)}; |
||
10 | return nctp_send(port, 1, ptr, sz); |
||
11 | } |
||
12 | 266 | up20180642 | |
13 | int hltp_get_string(int port, char *p){ |
||
14 | return nctp_get(port, p);
|
||
15 | } |