Skip to content

Commit 8e3daee

Browse files
author
Jason Mobarak
authored
expose udp client functionality (#50)
* expose udp client functionality * Pin the version of the Invoke-NativeApplication tool
1 parent 353c277 commit 8e3daee

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/str2str/str2str.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ static const char *help[] = {
7373
" stream path",
7474
" serial : serial://port[:brate[:bsize[:parity[:stopb[:fctr]]]]]",
7575
" tcp server : tcpsvr://:port",
76-
" udp server : udpsvr://addr:port",
7776
" tcp client : tcpcli://addr[:port]",
77+
" udp server : udpsvr://addr:port",
78+
" udp client : udpcli://addr:port",
7879
" ntrip client : ntrip://[user[:passwd]@]addr[:port][/mntpnt]",
7980
" ntrip server : ntrips://[:passwd@]addr[:port]/mntpnt[:str] (only out)",
8081
" ntrip caster server: ntripc_s://[:passwd@][:port] (only in)",
@@ -207,6 +208,8 @@ static int decodepath(const char *path, int *type, char *strpath, int *fmt) {
207208
*type = STR_TCPSVR;
208209
else if (!strncmp(path, "udpsvr", 6))
209210
*type = STR_UDPSVR;
211+
else if (!strncmp(path, "udpcli", 6))
212+
*type = STR_UDPCLI;
210213
else if (!strncmp(path, "tcpcli", 6))
211214
*type = STR_TCPCLI;
212215
else if (!strncmp(path, "ntripc_s", 8))

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install:
1212
- set PATH=C:\MinGW\bin;C:\MinGW\msys\1.0\bin;%PATH%
1313
- set CC=gcc
1414
- set INCLUDE=%cd%\src;..\..\..\src;%INCLUDE%
15-
- ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/mnaoumov/Invoke-NativeApplication/master/exec.ps1" -OutFile ".\exec1.ps1"
15+
- ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/mnaoumov/Invoke-NativeApplication/25827a3f8348c96c618d8487164dc94877b960f8/exec.ps1" -OutFile ".\exec1.ps1"
1616

1717
build_script:
1818
- ps: |

0 commit comments

Comments
 (0)