34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/windows/win32.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=386
32 |
33 | PROFILE=test
34 |
35 | PROJECT_HOME=`pwd`
36 |
37 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
38 | . ${PROJECT_HOME}/assembly/common/app.properties
39 | fi
40 |
41 |
42 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
43 | . ${PROJECT_HOME}/assembly/common/build.sh
44 | fi
45 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/windows/win32.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=386
32 |
33 | PROFILE=test
34 |
35 | PROJECT_HOME=`pwd`
36 |
37 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
38 | . ${PROJECT_HOME}/assembly/common/app.properties
39 | fi
40 |
41 |
42 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
43 | . ${PROJECT_HOME}/assembly/common/build.sh
44 | fi
45 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/linux/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/mac/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/windows/dev.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for dev env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : dev.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="dev"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/linux/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/mac/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/client/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/linux/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=linux
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/mac/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=darwin
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/windows/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for test env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="test"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 |
41 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
42 | sh ${PROJECT_HOME}/assembly/common/build.sh
43 | fi
44 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/client/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/client/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/server/assembly/windows/release.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # ******************************************************
18 | # DESC : build script for release env
19 | # AUTHOR : Alex Stocks
20 | # VERSION : 1.0
21 | # LICENCE : Apache License 2.0
22 | # EMAIL : alexstocks@foxmail.com
23 | # MOD : 2016-07-12 16:34
24 | # FILE : test.sh
25 | # ******************************************************
26 |
27 |
28 | set -e
29 |
30 | export GOOS=windows
31 | export GOARCH=amd64
32 |
33 | export PROFILE="release"
34 | export PROJECT_HOME=`pwd`
35 |
36 | if [ -f "${PROJECT_HOME}/assembly/common/app.properties" ]; then
37 | . ${PROJECT_HOME}/assembly/common/app.properties
38 | fi
39 |
40 | if [ -f "${PROJECT_HOME}/assembly/common/build.sh" ]; then
41 | sh ${PROJECT_HOME}/assembly/common/build.sh
42 | fi
43 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | language: go
17 |
18 | os:
19 | - linux
20 |
21 | go:
22 | - "1.13"
23 |
24 | env:
25 | - GO111MODULE=on
26 |
27 | install: true
28 |
29 | script:
30 | # license-check
31 | - echo 'start license check'
32 | - sh before_validate_license.sh
33 | - chmod u+x /tmp/tools/license/license-header-checker
34 | - go fmt ./... && [[ -z `git status -s` ]]
35 | - /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
36 | - go mod vendor && go test $(go list ./... | grep -v vendor | grep -v demo) -coverprofile=coverage.txt -covermode=atomic
37 |
38 | after_success:
39 | - bash <(curl -s https://codecov.io/bash)
40 |
41 | notifications:
42 | webhooks: https://oapi.dingtalk.com/robot/send?access_token=75f4f1ec3868508aa89e5a5d6f9d342216809df3ebc8a78c8ae8722848e06166
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/profiles/dev/config.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # server yaml configure file
17 | app_name : "ECHO-SERVER"
18 | host : "127.0.0.1"
19 | ports : ["10000", "20000"]
20 | profile_port : 10086
21 |
22 | # session
23 | # client与server之间连接的超时时间
24 | session_timeout : "20s"
25 | session_number : 700
26 |
27 | # app
28 | fail_fast_timeout : "3s"
29 |
30 | # tcp
31 | getty_session_param:
32 | compress_encoding : true
33 | tcp_no_delay : true
34 | tcp_keep_alive : true
35 | keep_alive_period : "120s"
36 | tcp_r_buf_size : 262144
37 | tcp_w_buf_size : 524288
38 | pkg_rq_size : 1024
39 | pkg_wq_size : 512
40 | tcp_read_timeout : "1s"
41 | tcp_write_timeout : "5s"
42 | wait_timeout : "1s"
43 | max_msg_len : 128
44 | session_name : "echo-server"
45 |
46 | task_queue_length : 1024
47 | task_queue_number : 20
48 | task_pool_size : 1000
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/profiles/release/config.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # server yaml configure file
17 | app_name : "ECHO-SERVER"
18 | host : "127.0.0.1"
19 | ports : ["10000", "20000"]
20 | profile_port : 10086
21 |
22 | # session
23 | # client与server之间连接的超时时间
24 | session_timeout : "20s"
25 | session_number : 700
26 |
27 | # app
28 | fail_fast_timeout : "3s"
29 |
30 | # tcp
31 | getty_session_param:
32 | compress_encoding : true
33 | tcp_no_delay : true
34 | tcp_keep_alive : true
35 | keep_alive_period : "120s"
36 | tcp_r_buf_size : 262144
37 | tcp_w_buf_size : 524288
38 | pkg_rq_size : 1024
39 | pkg_wq_size : 512
40 | tcp_read_timeout : "1s"
41 | tcp_write_timeout : "5s"
42 | wait_timeout : "1s"
43 | max_msg_len : 128
44 | session_name : "echo-server"
45 |
46 | task_queue_length : 1024
47 | task_queue_number : 20
48 | task_pool_size : 1000
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/server/profiles/test/config.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # server yaml configure file
17 | app_name : "ECHO-SERVER"
18 | host : "127.0.0.1"
19 | ports : ["10000", "20000"]
20 | profile_port : 10086
21 |
22 | # session
23 | # client与server之间连接的超时时间
24 | session_timeout : "20s"
25 | session_number : 700
26 |
27 | # app
28 | fail_fast_timeout : "3s"
29 |
30 | # tcp
31 | getty_session_param:
32 | compress_encoding : true
33 | tcp_no_delay : true
34 | tcp_keep_alive : true
35 | keep_alive_period : "120s"
36 | tcp_r_buf_size : 262144
37 | tcp_w_buf_size : 524288
38 | pkg_rq_size : 1024
39 | pkg_wq_size : 512
40 | tcp_read_timeout : "1s"
41 | tcp_write_timeout : "5s"
42 | wait_timeout : "1s"
43 | max_msg_len : 128
44 | session_name : "echo-server"
45 |
46 | task_queue_length : 1024
47 | task_queue_number : 20
48 | task_pool_size : 1000
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/profiles/dev/config.toml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # toml configure file
17 | # toml中key的首字母可以小写,但是对应的golang中的struct成员首字母必须大写
18 |
19 | AppName = "ECHO-SERVER"
20 |
21 | Host = "127.0.0.1"
22 | # Host = "192.168.35.1"
23 | # Host = "192.168.8.3"
24 | # Ports = ["10000", "20000"]
25 | Ports = ["10000"]
26 | ProfilePort = 10086
27 |
28 | # session
29 | # client与server之间连接的超时时间
30 | SessionTimeout = "20s"
31 | SessionNumber = 700
32 |
33 | # app
34 | FailFastTimeout = "3s"
35 |
36 | # tcp
37 | [GettySessionParam]
38 | CompressEncoding = true
39 | UdpRBufSize = 262144
40 | UdpWBufSize = 524288
41 | PkgWQSize = 512
42 | UdpReadTimeout = "10s"
43 | UdpWriteTimeout = "5s"
44 | WaitTimeout = "1s"
45 | MaxMsgLen = 128
46 | SessionName = "echo-server"
47 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/profiles/release/config.toml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # toml configure file
17 | # toml中key的首字母可以小写,但是对应的golang中的struct成员首字母必须大写
18 |
19 | AppName = "ECHO-SERVER"
20 |
21 | Host = "127.0.0.1"
22 | # Host = "192.168.35.1"
23 | # Host = "192.168.8.3"
24 | # Ports = ["10000", "20000"]
25 | Ports = ["10000"]
26 | ProfilePort = 10086
27 |
28 | # session
29 | # client与server之间连接的超时时间
30 | SessionTimeout = "20s"
31 | SessionNumber = 700
32 |
33 | # app
34 | FailFastTimeout = "3s"
35 |
36 | # tcp
37 | [GettySessionParam]
38 | CompressEncoding = true
39 | UdpRBufSize = 262144
40 | UdpWBufSize = 524288
41 | PkgWQSize = 512
42 | UdpReadTimeout = "10s"
43 | UdpWriteTimeout = "5s"
44 | WaitTimeout = "1s"
45 | MaxMsgLen = 128
46 | SessionName = "echo-server"
47 |
--------------------------------------------------------------------------------
/examples/echo/udp-echo/server/profiles/test/config.toml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # toml configure file
17 | # toml中key的首字母可以小写,但是对应的golang中的struct成员首字母必须大写
18 |
19 | AppName = "ECHO-SERVER"
20 |
21 | Host = "127.0.0.1"
22 | # Host = "192.168.35.1"
23 | # Host = "192.168.8.3"
24 | # Ports = ["10000", "20000"]
25 | Ports = ["10000"]
26 | ProfilePort = 10086
27 |
28 | # session
29 | # client与server之间连接的超时时间
30 | SessionTimeout = "20s"
31 | SessionNumber = 700
32 |
33 | # app
34 | FailFastTimeout = "3s"
35 |
36 | # tcp
37 | [GettySessionParam]
38 | CompressEncoding = true
39 | UdpRBufSize = 262144
40 | UdpWBufSize = 524288
41 | PkgWQSize = 512
42 | UdpReadTimeout = "10s"
43 | UdpWriteTimeout = "5s"
44 | WaitTimeout = "1s"
45 | MaxMsgLen = 128
46 | SessionName = "echo-server"
47 |
--------------------------------------------------------------------------------
/demo/hello/tls/config.go:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package tcp
19 |
20 | import (
21 | "crypto/tls"
22 | "time"
23 | )
24 |
25 | import (
26 | "github.com/apache/dubbo-getty"
27 | "github.com/apache/dubbo-getty/demo/hello"
28 | )
29 |
30 | var (
31 | pkgHandler = &hello.PackageHandler{}
32 | // EventListener register event callback
33 | EventListener = &hello.MessageHandler{}
34 | )
35 |
36 | // InitialSession init session
37 | func InitialSession(session getty.Session) (err error) {
38 | // session.SetCompressType(getty.CompressZip)
39 | _, ok := session.Conn().(*tls.Conn)
40 | if ok {
41 | session.SetName("hello")
42 | session.SetMaxMsgLen(128 * 1024) // max message package length is 128k
43 | session.SetReadTimeout(time.Second)
44 | session.SetWriteTimeout(5 * time.Second)
45 | session.SetCronPeriod(int(hello.CronPeriod / 1e6))
46 | session.SetWaitTime(time.Second)
47 |
48 | session.SetPkgHandler(pkgHandler)
49 | session.SetEventListener(EventListener)
50 | }
51 | return nil
52 | }
53 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/js-client/style.css:
--------------------------------------------------------------------------------
1 | /* Fix user-agent */
2 |
3 | * {
4 | box-sizing: border-box;
5 | }
6 |
7 | html {
8 | font-weight: 300;
9 | -webkit-font-smoothing: antialiased;
10 | }
11 |
12 | html, input {
13 | font-family:
14 | "HelveticaNeue-Light",
15 | "Helvetica Neue Light",
16 | "Helvetica Neue",
17 | Helvetica,
18 | Arial,
19 | "Lucida Grande",
20 | sans-serif;
21 | }
22 |
23 | html, body {
24 | height: 100%;
25 | margin: 0;
26 | padding: 0;
27 | }
28 |
29 | ul {
30 | list-style: none;
31 | word-wrap: break-word;
32 | }
33 |
34 | /* Pages */
35 |
36 | .pages {
37 | height: 100%;
38 | margin: 0;
39 | padding: 0;
40 | width: 100%;
41 | }
42 |
43 | .page {
44 | height: 100%;
45 | position: absolute;
46 | width: 100%;
47 | }
48 | /* Chat page */
49 | /* Font */
50 |
51 | .messages {
52 | font-size: 150%;
53 | }
54 |
55 | .inputMessage {
56 | font-size: 100%;
57 | }
58 |
59 | .log {
60 | color: gray;
61 | font-size: 70%;
62 | margin: 5px;
63 | text-align: center;
64 | }
65 |
66 | /* Messages */
67 |
68 | .chatArea {
69 | height: 100%;
70 | padding-bottom: 60px;
71 | }
72 |
73 | .messages {
74 | height: 100%;
75 | margin: 0;
76 | overflow-y: scroll;
77 | padding: 10px 20px 10px 20px;
78 | }
79 |
80 | .message.typing .messageBody {
81 | color: gray;
82 | }
83 |
84 | .username {
85 | float: left;
86 | font-weight: 700;
87 | overflow: hidden;
88 | padding-right: 15px;
89 | text-align: right;
90 | }
91 |
92 | /* Input */
93 |
94 | .inputMessage {
95 | border: 10px solid #000;
96 | bottom: 0;
97 | height: 60px;
98 | left: 0;
99 | outline: none;
100 | padding-left: 10px;
101 | position: absolute;
102 | right: 0;
103 | width: 100%;
104 | }
105 |
--------------------------------------------------------------------------------
/examples/echo/wss-echo/js-client/style.css:
--------------------------------------------------------------------------------
1 | /* Fix user-agent */
2 |
3 | * {
4 | box-sizing: border-box;
5 | }
6 |
7 | html {
8 | font-weight: 300;
9 | -webkit-font-smoothing: antialiased;
10 | }
11 |
12 | html, input {
13 | font-family:
14 | "HelveticaNeue-Light",
15 | "Helvetica Neue Light",
16 | "Helvetica Neue",
17 | Helvetica,
18 | Arial,
19 | "Lucida Grande",
20 | sans-serif;
21 | }
22 |
23 | html, body {
24 | height: 100%;
25 | margin: 0;
26 | padding: 0;
27 | }
28 |
29 | ul {
30 | list-style: none;
31 | word-wrap: break-word;
32 | }
33 |
34 | /* Pages */
35 |
36 | .pages {
37 | height: 100%;
38 | margin: 0;
39 | padding: 0;
40 | width: 100%;
41 | }
42 |
43 | .page {
44 | height: 100%;
45 | position: absolute;
46 | width: 100%;
47 | }
48 | /* Chat page */
49 | /* Font */
50 |
51 | .messages {
52 | font-size: 150%;
53 | }
54 |
55 | .inputMessage {
56 | font-size: 100%;
57 | }
58 |
59 | .log {
60 | color: gray;
61 | font-size: 70%;
62 | margin: 5px;
63 | text-align: center;
64 | }
65 |
66 | /* Messages */
67 |
68 | .chatArea {
69 | height: 100%;
70 | padding-bottom: 60px;
71 | }
72 |
73 | .messages {
74 | height: 100%;
75 | margin: 0;
76 | overflow-y: scroll;
77 | padding: 10px 20px 10px 20px;
78 | }
79 |
80 | .message.typing .messageBody {
81 | color: gray;
82 | }
83 |
84 | .username {
85 | float: left;
86 | font-weight: 700;
87 | overflow: hidden;
88 | padding-right: 15px;
89 | text-align: right;
90 | }
91 |
92 | /* Input */
93 |
94 | .inputMessage {
95 | border: 10px solid #000;
96 | bottom: 0;
97 | height: 60px;
98 | left: 0;
99 | outline: none;
100 | padding-left: 10px;
101 | position: absolute;
102 | right: 0;
103 | width: 100%;
104 | }
105 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # getty
2 |
3 | *a netty like asynchronous network I/O library*
4 |
5 | [](https://travis-ci.org/dubbogo/getty)
6 | [](https://codecov.io/gh/dubbogo/getty)
7 | [](https://pkg.go.dev/github.com/dubbogo/getty?tab=doc)
8 | [](https://goreportcard.com/report/github.com/dubbogo/getty)
9 | 
10 |
11 | ## INTRO
12 |
13 | Getty is a asynchronous network I/O library in golang. Getty works on tcp/udp/websocket network protocol and supplies [a uniform interface](https://github.com/dubbogo/getty/blob/master/getty.go#L45).
14 |
15 | In getty there are two goroutines in one connection(session), one reads tcp stream/udp packet/websocket package, the other handles logic process and writes response into network write buffer. If your logic process may take a long time, you should start a new logic process goroutine by yourself in codec.go:(Codec)OnMessage.
16 |
17 | You can also handle heartbeat logic in codec.go:(Codec):OnCron. If you use tcp/udp, you should send hearbeat package by yourself, and then invoke session.go:(Session)UpdateActive to update its active time. Please check whether the tcp session has been timeout or not in codec.go:(Codec)OnCron by session.go:(Session)GetActive.
18 |
19 | Whatever if you use websocket, you do not need to care about hearbeat request/response because Getty do this task in session.go:(Session)handleLoop by sending/received websocket ping/pong frames. You just need to check whether the websocket session has been timeout or not in codec.go:(Codec)OnCron by session.go:(Session)GetActive.
20 |
21 | ## LICENCE
22 |
23 | Apache License 2.0
24 |
25 |
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/profiles/release/config.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # yaml configure file
17 | app_name : "ECHO-CLIENT"
18 |
19 | # host
20 | local_host : "127.0.0.1"
21 |
22 | # server
23 | server_host : "127.0.0.1"
24 | server_port : 10000
25 |
26 | profile_port : 20080
27 |
28 | # connection pool
29 | # 连接池连接数目
30 | connection_number : 2
31 |
32 | # session
33 | # client与server之间连接的心跳周期
34 | heartbeat_period : "10s"
35 | # client与server之间连接的超时时间
36 | session_timeout : "20s"
37 |
38 | # client
39 | # client echo request string
40 | echo_string : "Hello, getty!"
41 | # 发送echo请求次数
42 | echo_times : 10000
43 |
44 | # app fail fast
45 | fail_fast_timeout : "3s"
46 |
47 | # tcp
48 | getty_session_param:
49 | compress_encoding : true
50 | tcp_no_delay : true
51 | tcp_keep_alive : true
52 | keep_alive_period : "120s"
53 | tcp_r_buf_size : 262144
54 | tcp_w_buf_size : 65536
55 | pkg_rq_size : 512
56 | pkg_wq_size : 256
57 | tcp_read_timeout : "1s"
58 | tcp_write_timeout : "5s"
59 | wait_timeout : "1s"
60 | max_msg_len : 128
61 | session_name : "echo-client"
62 |
63 | task_queue_length : 1024
64 | task_queue_number : 20
65 | task_pool_size : 1000
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/profiles/test/config.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # yaml configure file
17 | app_name : "ECHO-CLIENT"
18 |
19 | # host
20 | local_host : "127.0.0.1"
21 |
22 | # server
23 | server_host : "127.0.0.1"
24 | server_port : 10000
25 |
26 | profile_port : 20080
27 |
28 | # connection pool
29 | # 连接池连接数目
30 | connection_number : 2
31 |
32 | # session
33 | # client与server之间连接的心跳周期
34 | heartbeat_period : "10s"
35 | # client与server之间连接的超时时间
36 | session_timeout : "20s"
37 |
38 | # client
39 | # client echo request string
40 | echo_string : "Hello, getty!"
41 | # 发送echo请求次数
42 | echo_times : 10000
43 |
44 | # app fail fast
45 | fail_fast_timeout : "3s"
46 |
47 | # tcp
48 | getty_session_param:
49 | compress_encoding : true
50 | tcp_no_delay : true
51 | tcp_keep_alive : true
52 | keep_alive_period : "120s"
53 | tcp_r_buf_size : 262144
54 | tcp_w_buf_size : 65536
55 | pkg_rq_size : 512
56 | pkg_wq_size : 256
57 | tcp_read_timeout : "1s"
58 | tcp_write_timeout : "5s"
59 | wait_timeout : "1s"
60 | max_msg_len : 128
61 | session_name : "echo-client"
62 |
63 | task_queue_length : 1024
64 | task_queue_number : 20
65 | task_pool_size : 1000
--------------------------------------------------------------------------------
/examples/echo/tcp-echo/client/profiles/dev/config.yml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # yaml configure file
17 | app_name : "ECHO-CLIENT"
18 |
19 | # host
20 | local_host : "127.0.0.1"
21 |
22 | # server
23 | server_host : "127.0.0.1"
24 | server_port : 10000
25 |
26 | profile_port : 20080
27 |
28 | # connection pool
29 | # 连接池连接数目
30 | connection_number : 2
31 |
32 | # session
33 | # client与server之间连接的心跳周期
34 | heartbeat_period : "10s"
35 | # client与server之间连接的超时时间
36 | session_timeout : "20s"
37 |
38 | # client
39 | # client echo request string
40 | echo_string : "Hello, getty!"
41 | # 发送echo请求次数
42 | echo_times : 10000
43 |
44 | # app fail fast
45 | fail_fast_timeout : "3s"
46 |
47 | # tcp
48 | getty_session_param:
49 | compress_encoding : true
50 | tcp_no_delay : true
51 | tcp_keep_alive : true
52 | keep_alive_period : "120s"
53 | tcp_r_buf_size : 262144
54 | tcp_w_buf_size : 65536
55 | pkg_rq_size : 512
56 | pkg_wq_size : 256
57 | tcp_read_timeout : "1s"
58 | tcp_write_timeout : "5s"
59 | wait_timeout : "1s"
60 | max_msg_len : 128
61 | session_name : "echo-client"
62 |
63 | task_queue_length : 1024
64 | task_queue_number : 20
65 | task_pool_size : 1000
66 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/profiles/dev/config.toml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # toml configure file
17 | # toml中key的首字母可以小写,但是对应的golang中的struct成员首字母必须大写
18 |
19 | AppName = "ECHO-SERVER"
20 |
21 | # Host = "0.0.0.0"
22 | # Host = "127.0.0.1"
23 | # Host = "192.168.35.1"
24 | Host = "localhost"
25 | Ports = ["10000", "20000"]
26 | Paths = ["/echo", "/echo"]
27 | ProfilePort = 10086
28 |
29 | # session
30 | # client与server之间连接的心跳周期
31 | HeartbeatPeriod = "10s"
32 | # client与server之间连接的超时时间
33 | SessionTimeout = "20s"
34 | # client与server之间连接的最大连接数
35 | SessionNumber = 700
36 |
37 | # app
38 | FailFastTimeout = "3s"
39 |
40 | # tcp
41 | [GettySessionParam]
42 | CompressEncoding = true
43 | TcpNoDelay = true
44 | TcpKeepAlive = true
45 | TcpRBufSize = 262144
46 | TcpWBufSize = 524288
47 | PkgWQSize = 512
48 | TcpReadTimeout = "1s"
49 | TcpWriteTimeout = "5s"
50 | WaitTimeout = "1s"
51 | MaxMsgLen = 128
52 | SessionName = "echo-server"
53 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/profiles/test/config.toml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # toml configure file
17 | # toml中key的首字母可以小写,但是对应的golang中的struct成员首字母必须大写
18 |
19 | AppName = "ECHO-SERVER"
20 |
21 | # Host = "0.0.0.0"
22 | # Host = "127.0.0.1"
23 | # Host = "192.168.35.1"
24 | Host = "localhost"
25 | Ports = ["10000", "20000"]
26 | Paths = ["/echo", "/echo"]
27 | ProfilePort = 10086
28 |
29 | # session
30 | # client与server之间连接的心跳周期
31 | HeartbeatPeriod = "10s"
32 | # client与server之间连接的超时时间
33 | SessionTimeout = "20s"
34 | # client与server之间连接的最大连接数
35 | SessionNumber = 700
36 |
37 | # app
38 | FailFastTimeout = "3s"
39 |
40 | # tcp
41 | [GettySessionParam]
42 | CompressEncoding = true
43 | TcpNoDelay = true
44 | TcpKeepAlive = true
45 | TcpRBufSize = 262144
46 | TcpWBufSize = 524288
47 | PkgWQSize = 512
48 | TcpReadTimeout = "1s"
49 | TcpWriteTimeout = "5s"
50 | WaitTimeout = "1s"
51 | MaxMsgLen = 128
52 | SessionName = "echo-server"
53 |
--------------------------------------------------------------------------------
/examples/echo/ws-echo/server/profiles/release/config.toml:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # toml configure file
17 | # toml中key的首字母可以小写,但是对应的golang中的struct成员首字母必须大写
18 |
19 | AppName = "ECHO-SERVER"
20 |
21 | # Host = "0.0.0.0"
22 | # Host = "127.0.0.1"
23 | # Host = "192.168.35.1"
24 | Host = "localhost"
25 | Ports = ["10000", "20000"]
26 | Paths = ["/echo", "/echo"]
27 | ProfilePort = 10086
28 |
29 | # session
30 | # client与server之间连接的心跳周期
31 | HeartbeatPeriod = "10s"
32 | # client与server之间连接的超时时间
33 | SessionTimeout = "20s"
34 | # client与server之间连接的最大连接数
35 | SessionNumber = 700
36 |
37 | # app
38 | FailFastTimeout = "3s"
39 |
40 | # tcp
41 | [GettySessionParam]
42 | CompressEncoding = true
43 | TcpNoDelay = true
44 | TcpKeepAlive = true
45 | TcpRBufSize = 262144
46 | TcpWBufSize = 524288
47 | PkgWQSize = 512
48 | TcpReadTimeout = "1s"
49 | TcpWriteTimeout = "5s"
50 | WaitTimeout = "1s"
51 | MaxMsgLen = 128
52 | SessionName = "echo-server"
53 |
--------------------------------------------------------------------------------