Giter Club home page Giter Club logo

testserver's Introduction

TestServer - A sample server for CoAP

Appveyor Build CircleCI

This represents the test server that I use for doing developement work and doing interoperability testing with other implementations. The default solution file, "server.sln", is setup to be able to build with the versions of Com.AugustCellars.CoAP and Com.AugustCellars.CoAP.TLS which are placed on the nuget server. There is a second solution file, "server.dev.sln", which is the one I use on my systems. It does not use any packages from nuget, but instead builds from the sources for each of the projects. This includes a custom version of BounceyCastle for which I have added some features that are not standard.

Copyright

Copyright (c) 2019, Jim Schaad [email protected]

Command Line

The command line supports the following switches:

  • config= This allows for a selection of configuration options other than the defaults.
  • demon Normally the server runs as a console application, this switch causes it to be run detached from the command window
  • loadkeys= This contains the keys that are seeded into the server.
  • title=<title string> Allows for a title to be set on the console window
  • ipaddress= Change the address on which the server is to be run
  • ipAddr An alias for ipaddress

Some command line options are not picked up because the conversion to the new option parser is not finished.

Default Setup

testserver's People

Contributors

jimsch avatar

Watchers

 avatar James Cloos avatar  avatar Federico Sismondi avatar

Forkers

jimsch lulzzz

testserver's Issues

--daemon not recognized arg for Test Server (for running F-Interop interop tests)

Hello Jim,

I'm trying to use your interop test server but I'm getting an error using --daemon arg.
This feature use to be supported by the CLI, right?

see the output when running the dockerized using mono:

root@6115ec7260e5:/AugustCellarsTestServer# mono TestServer/bin/Debug/TestServer.exe --daemon
Command line for server is:
server <args>

--config=<fileName>	Load server configuration
--generate=<fileName>	Generate a new set of keys
--keyfile=<fileName>	Load initial keys from here
--ipaddress=<address>	Address to run the server on

Load keys from Serverkeys.cbor by default
root@6115ec7260e5:/AugustCellarsTestServer#

The rest of the CLI args seem to work fine:

root@6115ec7260e5:/AugustCellarsTestServer# mono TestServer/bin/Debug/TestServer.exe
13:51:16 [SecureBlockwiseLayer] DEBUG - SecureBlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize:512
13:51:16 [OscoapLayer] Info - OscoapLayer - replay=True
13:51:16 [BlockwiseLayer] DEBUG - BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
13:51:16 [SecureBlockwiseLayer] DEBUG - SecureBlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize:512
13:51:16 [OscoapLayer] Info - OscoapLayer - replay=True
13:51:16 [BlockwiseLayer] DEBUG - BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
13:51:16 [CoapServer] DEBUG - Starting CoAP server
13:51:16 [CoAPEndPoint] DEBUG - Starting endpoint bound to [::]:5683
13:51:16 [CoAPEndPoint] DEBUG - Starting endpoint bound to [::]:5684
13:51:16 [SecureBlockwiseLayer] DEBUG - SecureBlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize:512
13:51:16 [OscoapLayer] Info - OscoapLayer - replay=True
13:51:16 [BlockwiseLayer] DEBUG - BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
13:51:16 [SecureBlockwiseLayer] DEBUG - SecureBlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize:512
13:51:16 [OscoapLayer] Info - OscoapLayer - replay=True
13:51:16 [BlockwiseLayer] DEBUG - BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
13:51:16 [CoapServer] DEBUG - Starting CoAP server
13:51:16 [CoAPEndPoint] DEBUG - Starting endpoint bound to [::]:5685
13:51:16 [CoAPEndPoint] DEBUG - Starting endpoint bound to [::]:5686
Press key to exit
13:51:18 [CoapServer] DEBUG - Stopping CoAP server
13:51:18 [CoAPEndPoint] DEBUG - Stopping endpoint bound to [::]:5683
13:51:18 [CoAPEndPoint] DEBUG - Stopping endpoint bound to [::]:5684
13:51:18 [CoapServer] DEBUG - Stopping CoAP server
13:51:18 [CoAPEndPoint] DEBUG - Stopping endpoint bound to [::]:5685
13:51:18 [CoAPEndPoint] DEBUG - Stopping endpoint bound to [::]:5686
root@6115ec7260e5:/AugustCellarsTestServer# mono TestServer/bin/Debug/TestServer.exe --interop-test=CoapCore
13:53:09 [SecureBlockwiseLayer] DEBUG - SecureBlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize:512
13:53:09 [OscoapLayer] Info - OscoapLayer - replay=True
13:53:10 [BlockwiseLayer] DEBUG - BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
13:53:10 [CoapServer] DEBUG - Starting CoAP server
13:53:10 [CoAPEndPoint] DEBUG - Starting endpoint bound to [::]:5683
Press key to exit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.