├── .gitignore
├── Clients
├── Java
│ ├── .classpath
│ ├── .project
│ └── src
│ │ └── com
│ │ └── us
│ │ └── openserver
│ │ ├── Client.java
│ │ ├── ConsoleLogger.java
│ │ ├── IClientObserver.java
│ │ ├── ILoggerObserver.java
│ │ ├── Level.java
│ │ ├── Logger.java
│ │ ├── configuration
│ │ ├── ServerConfiguration.java
│ │ └── TlsConfiguration.java
│ │ ├── protocols
│ │ ├── AuthenticationProtocolBase.java
│ │ ├── BinaryReader.java
│ │ ├── BinaryWriter.java
│ │ ├── CapabilitiesProtocol.java
│ │ ├── CapabilitiesProtocolCommands.java
│ │ ├── PacketWriter.java
│ │ ├── ProtocolBase.java
│ │ ├── ProtocolConfiguration.java
│ │ └── SessionLayerProtocol.java
│ │ └── session
│ │ ├── MyTrustManager.java
│ │ ├── PacketHandler.java
│ │ ├── PacketReadTypes.java
│ │ ├── Session.java
│ │ ├── SessionCloser.java
│ │ ├── SessionInitializer.java
│ │ └── SessionOpener.java
├── Objective-C
│ └── src
│ │ ├── AuthenticationProtocolBase.h
│ │ ├── AuthenticationProtocolBase.m
│ │ ├── BinaryReader.h
│ │ ├── BinaryReader.m
│ │ ├── BinaryWriter.h
│ │ ├── BinaryWriter.m
│ │ ├── CapabilitiesProtocol.h
│ │ ├── CapabilitiesProtocol.m
│ │ ├── CapabilitiesProtocolCommands.h
│ │ ├── CapabilitiesProtocolCommands.m
│ │ ├── Client.h
│ │ ├── Client.m
│ │ ├── ConsoleLogger.h
│ │ ├── ConsoleLogger.m
│ │ ├── IClientObserver.h
│ │ ├── IClientObserver.m
│ │ ├── ILoggerObserver.h
│ │ ├── ILoggerObserver.m
│ │ ├── Level.h
│ │ ├── Level.m
│ │ ├── Logger.h
│ │ ├── Logger.m
│ │ ├── MyTrustManager.h
│ │ ├── MyTrustManager.m
│ │ ├── PacketHandler.h
│ │ ├── PacketHandler.m
│ │ ├── PacketReadTypes.h
│ │ ├── PacketReadTypes.m
│ │ ├── PacketWriter.h
│ │ ├── PacketWriter.m
│ │ ├── ProtocolBase.h
│ │ ├── ProtocolBase.m
│ │ ├── ProtocolConfiguration.h
│ │ ├── ProtocolConfiguration.m
│ │ ├── ServerConfiguration.h
│ │ ├── ServerConfiguration.m
│ │ ├── Session.h
│ │ ├── Session.m
│ │ ├── SessionCloser.h
│ │ ├── SessionCloser.m
│ │ ├── SessionInitializer.h
│ │ ├── SessionInitializer.m
│ │ ├── SessionLayerProtocol.h
│ │ ├── SessionLayerProtocol.m
│ │ ├── SessionOpener.h
│ │ ├── SessionOpener.m
│ │ ├── TlsConfiguration.h
│ │ └── TlsConfiguration.m
├── Windows
│ ├── OpenServerWindowsClient.sln
│ ├── OpenServerWindowsClient
│ │ ├── Client.cs
│ │ ├── OpenServerWindowsClient.csproj
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ ├── TestClient
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── TestClient.csproj
│ │ ├── app.config
│ │ └── packages.config
│ ├── UpperSetting.OpenServer.Windows.Client.1.0.0.0.nuspec
│ ├── bin
│ │ ├── TestClient.exe.config
│ │ └── log4net.dll
│ └── packages
│ │ └── log4net.2.0.5
│ │ └── lib
│ │ └── net35-full
│ │ └── log4net.dll
└── WindowsMobile
│ ├── OpenServerWindowsMobile.sln
│ ├── OpenServerWindowsMobile
│ ├── Client.cs
│ ├── OpenServerWindowsMobile.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── Session.cs
│ ├── TestClient
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Assets
│ │ ├── Logo.scale-240.png
│ │ ├── SmallLogo.scale-240.png
│ │ ├── SplashScreen.scale-240.png
│ │ ├── Square71x71Logo.scale-240.png
│ │ ├── StoreLogo.scale-240.png
│ │ └── WideLogo.scale-240.png
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── Package.appxmanifest
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TestClient.csproj
│ └── UpperSetting.OpenServer.WindowsMobile.1.0.0.0.nuspec
├── Documentation
├── OpenServerDocumentation.sln
├── OpenServerDocumentation
│ ├── Content
│ │ ├── About US.aml
│ │ ├── Architecture.png
│ │ ├── Client-Side Components
│ │ │ ├── Android
│ │ │ │ ├── Android.aml
│ │ │ │ ├── Android.png
│ │ │ │ └── Android.snippets
│ │ │ ├── Client-Side Components.aml
│ │ │ ├── Java
│ │ │ │ ├── Java.aml
│ │ │ │ └── Java.snippets
│ │ │ ├── Mac
│ │ │ │ ├── Mac.aml
│ │ │ │ ├── Mac.png
│ │ │ │ ├── Mac.snippets
│ │ │ │ ├── MacXCodeOptions.png
│ │ │ │ └── MacXCodeTemplate.png
│ │ │ ├── Objective-C
│ │ │ │ └── Objective-C.snippets
│ │ │ ├── Portable
│ │ │ │ └── Portable.snippets
│ │ │ ├── Windows Mobile
│ │ │ │ ├── Windows Mobile .snippets
│ │ │ │ ├── Windows Mobile.aml
│ │ │ │ └── WindowsMobile.png
│ │ │ ├── Windows
│ │ │ │ ├── Windows.aml
│ │ │ │ └── Windows.snippets
│ │ │ └── iOS
│ │ │ │ ├── iOS.aml
│ │ │ │ ├── iOS.png
│ │ │ │ ├── iOS.snippets
│ │ │ │ ├── iOSXCodeOptions.png
│ │ │ │ └── iOSXCodeTemplate.png
│ │ ├── Configuration
│ │ │ ├── App.Config
│ │ │ │ ├── app.config.aml
│ │ │ │ ├── app.config.snippets
│ │ │ │ ├── item Element.aml
│ │ │ │ ├── protocols Element.aml
│ │ │ │ ├── server Element.aml
│ │ │ │ └── tls Element.aml
│ │ │ ├── Configuring Windows Components.aml
│ │ │ └── Server.aml
│ │ ├── J2ObjC.png
│ │ ├── Logging
│ │ │ ├── Logging.aml
│ │ │ └── Logging.snippets
│ │ ├── ProjectHierarchy.png
│ │ ├── Protocols
│ │ │ ├── CSharp.aml
│ │ │ ├── CSharp.snippets
│ │ │ ├── Creating Protocols.aml
│ │ │ ├── Java.aml
│ │ │ ├── Java.snippets
│ │ │ ├── Objective-C.aml
│ │ │ ├── Protocols.aml
│ │ │ └── Walkthrough1.aml
│ │ ├── Server-Side Components
│ │ │ ├── Creating Server-Side Components.aml
│ │ │ ├── Creating Server-Side Components.snippets
│ │ │ └── Server-Side Components.aml
│ │ └── Welcome.aml
│ ├── ContentLayout.content
│ ├── OpenServerDocumentation.shfbproj
│ └── icons
│ │ └── Help.png
└── branding.css
├── License.txt
├── OpenServer
├── OpenServer.sln
├── OpenServer
│ ├── OpenServer.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── Server.cs
├── TestServer
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TestServer.csproj
│ ├── app.config
│ └── packages.config
├── UpperSetting.OpenServer.1.0.0.0.nuspec
└── bin
│ └── TestServer.exe.config
├── OpenServerSDK.sln
├── OpenServerShared
├── OpenServerShared.sln
├── OpenServerShared
│ ├── Configuration
│ │ ├── ServerConfiguration.cs
│ │ └── TlsConfiguration.cs
│ ├── ErrorTypes.cs
│ ├── IO
│ │ ├── BinaryReaderExtensions.cs
│ │ └── BinaryWriterExtension.cs
│ ├── Level.cs
│ ├── Logger.cs
│ ├── OpenServerShared.csproj
│ ├── PacketReadTypes.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Protocols
│ │ ├── AuthenticationProtocolBase.cs
│ │ ├── CapabilitiesProtocol.cs
│ │ ├── CapabilitiesProtocolCommands.cs
│ │ ├── ProtocolBase.cs
│ │ ├── ProtocolConfiguration.cs
│ │ └── SessionLayerProtocol.cs
│ ├── SessionBase.cs
│ ├── SessionId.cs
│ └── obj
│ │ ├── Debug
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ │ └── Release
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
└── UpperSetting.OpenServer.Shared.1.0.0.0.nuspec
├── OpenServerWindowsShared
├── OpenServerWindowsShared.sln
├── OpenServerWindowsShared
│ ├── Configuration
│ │ └── ServerConfigurationSectionHandler.cs
│ ├── ConsoleLogger.cs
│ ├── Data
│ │ ├── DBBase.cs
│ │ └── SqlServer
│ │ │ └── SqlServerBase.cs
│ ├── Log4NetLogger.cs
│ ├── OpenServerWindowsShared.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Protocols
│ │ ├── ProtocolConfigurationEx.cs
│ │ └── ProtocolConfigurationSectionHandler.cs
│ ├── Session.cs
│ ├── Threading
│ │ └── ThreadHelper.cs
│ └── packages.config
└── UpperSetting.OpenServer.Windows.Shared.1.0.0.0.nuspec
├── Protocols
├── DatabaseAuth
│ ├── Java
│ │ ├── .classpath
│ │ ├── .project
│ │ └── src
│ │ │ └── com
│ │ │ └── us
│ │ │ └── openserver
│ │ │ └── protocols
│ │ │ └── databaseauth
│ │ │ ├── DatabaseAuthProtocol.java
│ │ │ ├── DatabaseAuthProtocolClient.java
│ │ │ └── DatabaseAuthProtocolCommands.java
│ ├── Objective-C
│ │ └── src
│ │ │ ├── DatabaseAuthProtocol.h
│ │ │ ├── DatabaseAuthProtocol.m
│ │ │ ├── DatabaseAuthProtocolClient.h
│ │ │ ├── DatabaseAuthProtocolClient.m
│ │ │ ├── DatabaseAuthProtocolCommands.h
│ │ │ └── DatabaseAuthProtocolCommands.m
│ └── Windows
│ │ ├── DatabaseAuthProtocol.sln
│ │ ├── DatabaseAuthProtocolClient
│ │ ├── DatabaseAuthProtocolClient.cs
│ │ ├── DatabaseAuthProtocolClient.csproj
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── DatabaseAuthProtocolServer
│ │ ├── DB.cs
│ │ ├── DatabaseAuthProtocolServer.cs
│ │ ├── DatabaseAuthProtocolServer.csproj
│ │ └── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ └── Resources.resx
│ │ ├── DatabaseAuthProtocolShared
│ │ ├── DatabaseAuthProtocol.cs
│ │ ├── DatabaseAuthProtocolCommands.cs
│ │ ├── DatabaseAuthProtocolException.cs
│ │ ├── DatabaseAuthProtocolShared.csproj
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── UpperSetting.OpenServer.Protocols.DatabaseAuth.Client.1.0.0.0.nuspec
│ │ ├── UpperSetting.OpenServer.Protocols.DatabaseAuth.Server.1.0.0.0.nuspec
│ │ └── UpperSetting.OpenServer.Protocols.DatabaseAuth.Shared.1.0.0.0.nuspec
├── Hello
│ ├── Java
│ │ ├── .classpath
│ │ ├── .project
│ │ └── src
│ │ │ └── com
│ │ │ └── us
│ │ │ └── openserver
│ │ │ └── protocols
│ │ │ └── hello
│ │ │ ├── HelloProtocol.java
│ │ │ ├── HelloProtocolClient.java
│ │ │ └── IHelloProtocolObserver.java
│ ├── Objective-C
│ │ └── src
│ │ │ ├── HelloProtocol.h
│ │ │ ├── HelloProtocol.m
│ │ │ ├── HelloProtocolClient.h
│ │ │ └── HelloProtocolClient.m
│ └── Windows
│ │ ├── HelloProtocol.sln
│ │ ├── HelloProtocolClient
│ │ ├── HelloProtocolClient.cs
│ │ ├── HelloProtocolClient.csproj
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── HelloProtocolServer
│ │ ├── HelloProtocolServer.cs
│ │ ├── HelloProtocolServer.csproj
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── HelloProtocolShared
│ │ ├── HelloProtocol.cs
│ │ ├── HelloProtocolShared.csproj
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── UpperSetting.OpenServer.Protocols.Hello.Client.1.0.0.0.nuspec
│ │ ├── UpperSetting.OpenServer.Protocols.Hello.Server.1.0.0.0.nuspec
│ │ └── UpperSetting.OpenServer.Protocols.Hello.Shared.1.0.0.0.nuspec
├── KeepAlive
│ ├── Java
│ │ ├── .classpath
│ │ ├── .project
│ │ └── src
│ │ │ └── com
│ │ │ └── us
│ │ │ └── openserver
│ │ │ └── protocols
│ │ │ └── keepalive
│ │ │ ├── KeepAliveProtocol.java
│ │ │ └── KeepAliveProtocolCommands.java
│ ├── Objective-C
│ │ └── src
│ │ │ ├── KeepAliveProtocol.h
│ │ │ ├── KeepAliveProtocol.m
│ │ │ ├── KeepAliveProtocolCommands.h
│ │ │ └── KeepAliveProtocolCommands.m
│ └── Windows
│ │ ├── KeepAliveProtocol.sln
│ │ ├── KeepAliveProtocol
│ │ ├── KeepAliveProtocol.cs
│ │ ├── KeepAliveProtocol.csproj
│ │ ├── KeepAliveProtocolCommands.cs
│ │ └── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── UpperSetting.OpenServer.Protocols.KeepAlive.1.0.0.0.nuspec
└── WinAuth
│ ├── Java
│ ├── .classpath
│ ├── .project
│ └── src
│ │ └── com
│ │ └── us
│ │ └── openserver
│ │ └── protocols
│ │ └── winauth
│ │ ├── WinAuthProtocol.java
│ │ ├── WinAuthProtocolClient.java
│ │ └── WinAuthProtocolCommands.java
│ ├── Objective-C
│ └── src
│ │ ├── WinAuthProtocol.h
│ │ ├── WinAuthProtocol.m
│ │ ├── WinAuthProtocolClient.h
│ │ ├── WinAuthProtocolClient.m
│ │ ├── WinAuthProtocolCommands.h
│ │ └── WinAuthProtocolCommands.m
│ └── Windows
│ ├── UpperSetting.OpenServer.Protocols.WinAuth.Client.1.0.0.0.nuspec
│ ├── UpperSetting.OpenServer.Protocols.WinAuth.Server.1.0.0.0.nuspec
│ ├── UpperSetting.OpenServer.Protocols.WinAuth.Shared.1.0.0.0.nuspec
│ ├── WinAuthProtocol.sln
│ ├── WinAuthProtocolClient
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── WinAuthProtocolClient.cs
│ └── WinAuthProtocolClient.csproj
│ ├── WinAuthProtocolServer
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── WinAuthProtocolConfigurationServer.cs
│ ├── WinAuthProtocolServer.cs
│ └── WinAuthProtocolServer.csproj
│ └── WinAuthProtocolShared
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── WinAuthProtocol.cs
│ ├── WinAuthProtocolCommands.cs
│ └── WinAuthProtocolShared.csproj
├── README.md
└── Samples
├── Android
└── HelloClient
│ ├── .gitignore
│ ├── .idea
│ ├── .name
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── libraries
│ │ ├── HelloProtocol.xml
│ │ ├── KeepAliveProtocol.xml
│ │ ├── OpenServerClient.xml
│ │ └── WinAuthProtocol.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── vcs.xml
│ ├── HelloClient.iml
│ ├── app
│ ├── app.iml
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── ic_launcher-web.png
│ │ ├── java
│ │ └── com
│ │ │ └── us
│ │ │ └── openserver
│ │ │ └── helloclient
│ │ │ ├── Controller.java
│ │ │ ├── LoginActivity.java
│ │ │ ├── MainActivity.java
│ │ │ ├── MessageViewModel.java
│ │ │ └── recyclerview
│ │ │ ├── DividerItemDecoration.java
│ │ │ └── adapter
│ │ │ ├── BindingRecyclerViewAdapter.java
│ │ │ └── binder
│ │ │ └── ItemBinder.java
│ │ └── res
│ │ ├── drawable
│ │ └── logo.png
│ │ ├── layout
│ │ ├── activity_login.xml
│ │ ├── activity_main.xml
│ │ └── row_message.xml
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ └── ic_launcher.png
│ │ ├── values-w820dp
│ │ └── dimens.xml
│ │ └── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ └── settings.gradle
├── Java
└── HelloClient
│ ├── .classpath
│ ├── .project
│ └── src
│ └── HelloClient.java
├── Mac
└── HelloMacClient
│ ├── HelloMacClient.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── HelloMacClient
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ └── Main.storyboard
│ ├── Images.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
│ ├── Info.plist
│ ├── ViewController.h
│ ├── ViewController.m
│ ├── main.m
│ └── src
│ ├── AuthenticationProtocolBase.h
│ ├── AuthenticationProtocolBase.m
│ ├── BinaryReader.h
│ ├── BinaryReader.m
│ ├── BinaryWriter.h
│ ├── BinaryWriter.m
│ ├── CapabilitiesProtocol.h
│ ├── CapabilitiesProtocol.m
│ ├── CapabilitiesProtocolCommands.h
│ ├── CapabilitiesProtocolCommands.m
│ ├── Client.h
│ ├── Client.m
│ ├── ConsoleLogger.h
│ ├── ConsoleLogger.m
│ ├── DatabaseAuthProtocol.h
│ ├── DatabaseAuthProtocol.m
│ ├── DatabaseAuthProtocolClient.h
│ ├── DatabaseAuthProtocolClient.m
│ ├── DatabaseAuthProtocolCommands.h
│ ├── DatabaseAuthProtocolCommands.m
│ ├── HelloProtocol.h
│ ├── HelloProtocol.m
│ ├── HelloProtocolClient.h
│ ├── HelloProtocolClient.m
│ ├── IClientObserver.h
│ ├── IClientObserver.m
│ ├── IHelloProtocolObserver.h
│ ├── IHelloProtocolObserver.m
│ ├── ILoggerObserver.h
│ ├── ILoggerObserver.m
│ ├── KeepAliveProtocol.h
│ ├── KeepAliveProtocol.m
│ ├── KeepAliveProtocolCommands.h
│ ├── KeepAliveProtocolCommands.m
│ ├── Level.h
│ ├── Level.m
│ ├── Logger.h
│ ├── Logger.m
│ ├── MyTrustManager.h
│ ├── MyTrustManager.m
│ ├── PacketHandler.h
│ ├── PacketHandler.m
│ ├── PacketReadTypes.h
│ ├── PacketReadTypes.m
│ ├── PacketWriter.h
│ ├── PacketWriter.m
│ ├── ProtocolBase.h
│ ├── ProtocolBase.m
│ ├── ProtocolConfiguration.h
│ ├── ProtocolConfiguration.m
│ ├── ServerConfiguration.h
│ ├── ServerConfiguration.m
│ ├── Session.h
│ ├── Session.m
│ ├── SessionCloser.h
│ ├── SessionCloser.m
│ ├── SessionInitializer.h
│ ├── SessionInitializer.m
│ ├── SessionLayerProtocol.h
│ ├── SessionLayerProtocol.m
│ ├── SessionOpener.h
│ ├── SessionOpener.m
│ ├── TlsConfiguration.h
│ ├── TlsConfiguration.m
│ ├── WinAuthProtocol.h
│ ├── WinAuthProtocol.m
│ ├── WinAuthProtocolClient.h
│ ├── WinAuthProtocolClient.m
│ ├── WinAuthProtocolCommands.h
│ └── WinAuthProtocolCommands.m
├── Windows
├── HelloClient
│ ├── App.config
│ ├── HelloClient.csproj
│ ├── HelloClient.sln
│ ├── Program.cs
│ └── Properties
│ │ └── AssemblyInfo.cs
└── HelloServer
│ ├── App.config
│ ├── HelloServer.csproj
│ ├── HelloServer.sln
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── WindowsMobile
└── HelloMobileClient
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Assets
│ ├── Logo.scale-240.png
│ ├── SmallLogo.scale-240.png
│ ├── SplashScreen.scale-240.png
│ ├── Square71x71Logo.scale-240.png
│ ├── StoreLogo.scale-240.png
│ └── WideLogo.scale-240.png
│ ├── HelloMobileClient.csproj
│ ├── HelloMobileClient.sln
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── Package.appxmanifest
│ └── Properties
│ └── AssemblyInfo.cs
└── iOS
└── HelloClient
├── HelloClient.xcodeproj
├── project.pbxproj
└── project.xcworkspace
│ └── contents.xcworkspacedata
└── HelloClient
├── AppDelegate.h
├── AppDelegate.m
├── Base.lproj
├── LaunchScreen.xib
└── Main.storyboard
├── Images.xcassets
└── AppIcon.appiconset
│ └── Contents.json
├── Info.plist
├── ViewController.h
├── ViewController.m
├── main.m
└── src
├── AuthenticationProtocolBase.h
├── AuthenticationProtocolBase.m
├── BinaryReader.h
├── BinaryReader.m
├── BinaryWriter.h
├── BinaryWriter.m
├── CapabilitiesProtocol.h
├── CapabilitiesProtocol.m
├── CapabilitiesProtocolCommands.h
├── CapabilitiesProtocolCommands.m
├── Client.h
├── Client.m
├── ConsoleLogger.h
├── ConsoleLogger.m
├── DatabaseAuthProtocol.h
├── DatabaseAuthProtocol.m
├── DatabaseAuthProtocolClient.h
├── DatabaseAuthProtocolClient.m
├── DatabaseAuthProtocolCommands.h
├── DatabaseAuthProtocolCommands.m
├── HelloProtocol.h
├── HelloProtocol.m
├── HelloProtocolClient.h
├── HelloProtocolClient.m
├── IClientObserver.h
├── IClientObserver.m
├── IHelloProtocolObserver.h
├── IHelloProtocolObserver.m
├── ILoggerObserver.h
├── ILoggerObserver.m
├── KeepAliveProtocol.h
├── KeepAliveProtocol.m
├── KeepAliveProtocolCommands.h
├── KeepAliveProtocolCommands.m
├── Level.h
├── Level.m
├── Logger.h
├── Logger.m
├── MyTrustManager.h
├── MyTrustManager.m
├── PacketHandler.h
├── PacketHandler.m
├── PacketReadTypes.h
├── PacketReadTypes.m
├── PacketWriter.h
├── PacketWriter.m
├── ProtocolBase.h
├── ProtocolBase.m
├── ProtocolConfiguration.h
├── ProtocolConfiguration.m
├── ServerConfiguration.h
├── ServerConfiguration.m
├── Session.h
├── Session.m
├── SessionCloser.h
├── SessionCloser.m
├── SessionInitializer.h
├── SessionInitializer.m
├── SessionLayerProtocol.h
├── SessionLayerProtocol.m
├── SessionOpener.h
├── SessionOpener.m
├── TlsConfiguration.h
├── TlsConfiguration.m
├── WinAuthProtocol.h
├── WinAuthProtocol.m
├── WinAuthProtocolClient.h
├── WinAuthProtocolClient.m
├── WinAuthProtocolCommands.h
└── WinAuthProtocolCommands.m
/Clients/Java/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Clients/Java/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | OpenServerClient
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/ConsoleLogger.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver;
21 |
22 | public class ConsoleLogger extends Logger
23 | {
24 | public void log(Level level, String message)
25 | {
26 | super.log(level, message);
27 |
28 | if (level == Level.Debug && !logDebug)
29 | return;
30 |
31 | System.out.println(String.format("%s %s", level, message));
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/IClientObserver.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver;
21 |
22 | public interface IClientObserver
23 | {
24 | public void onConnectionLost(Exception ex);
25 | }
26 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/ILoggerObserver.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver;
21 |
22 | public interface ILoggerObserver
23 | {
24 | void onLogMessage(Level level, String message);
25 | }
26 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/Level.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver;
21 |
22 | public enum Level
23 | {
24 | Debug,
25 | Info,
26 | Notice,
27 | Critical,
28 | Error
29 | }
30 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/protocols/AuthenticationProtocolBase.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols;
21 |
22 | public abstract class AuthenticationProtocolBase extends ProtocolBase
23 | {
24 | protected boolean isAuthenticated;
25 | public boolean getIsAuthenticated()
26 | {
27 | return isAuthenticated;
28 | }
29 |
30 | protected String userName;
31 | public String getUserName()
32 | {
33 | return userName;
34 | }
35 |
36 | protected Object userId;
37 | public Object getUserId()
38 | {
39 | return userId;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/protocols/CapabilitiesProtocolCommands.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols;
21 |
22 | public class CapabilitiesProtocolCommands
23 | {
24 | public static final int GET_PROTOCOL_IDS = 0x01;
25 | public static final int PROTOCOL_IDS = 0x02;
26 | public static final int ERROR = 0xFF;
27 | }
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/protocols/PacketWriter.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols;
21 |
22 | import com.us.openserver.session.Session;
23 |
24 | public class PacketWriter implements Runnable
25 | {
26 | private Session session;
27 | private byte[] packet;
28 | private Exception exception;
29 | private Thread t;
30 | private static int id;
31 |
32 | public PacketWriter(Session session, byte[] packet)
33 | {
34 | this.session = session;
35 | this.packet = packet;
36 | }
37 |
38 | public void execute()
39 | {
40 | t = new Thread(this, "PacketWriter" + id++);
41 | t.start();
42 | }
43 |
44 | public void run()
45 | {
46 | try
47 | {
48 | session.send(packet);
49 | }
50 | catch (Exception ex)
51 | {
52 | exception = ex;
53 | }
54 | }
55 |
56 | public Exception getException()
57 | {
58 | return exception;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/protocols/ProtocolBase.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols;
21 |
22 | import com.us.openserver.*;
23 | import com.us.openserver.session.Session;
24 |
25 | import java.io.IOException;
26 |
27 | public abstract class ProtocolBase
28 | {
29 | protected Session session;
30 |
31 | public void initialize(Session session, ProtocolConfiguration pc, Object userData)
32 | {
33 | this.session = session;
34 | }
35 |
36 | public void close()
37 | {
38 | }
39 |
40 | public void dispose()
41 | {
42 | }
43 |
44 | public void onPacketReceived(BinaryReader br) throws IOException
45 | {
46 | }
47 |
48 | public void onErrorReceived(String message)
49 | {
50 | synchronized(this)
51 | {
52 | log(Level.Error, message);
53 | notifyAll();
54 | }
55 | }
56 |
57 | protected void log(Level level, String message)
58 | {
59 | session.log(level, String.format("[ProtocolBase] %s", message));
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/protocols/ProtocolConfiguration.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols;
21 |
22 | public class ProtocolConfiguration
23 | {
24 | private int id;
25 | private String classPath;
26 |
27 | protected ProtocolConfiguration()
28 | {
29 | }
30 |
31 | public ProtocolConfiguration(int id, String classPath)
32 | {
33 | this();
34 |
35 | this.id = id;
36 | this.classPath = classPath;
37 | }
38 |
39 | public int getId() {
40 | return id;
41 | }
42 |
43 | public void setId(int id) {
44 | this.id = id;
45 | }
46 |
47 | public String getClassPath() {
48 | return classPath;
49 | }
50 |
51 | public void setClassPath(String classPath) {
52 | this.classPath = classPath;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/protocols/SessionLayerProtocol.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols;
21 |
22 | public class SessionLayerProtocol
23 | {
24 | public static final int PROTOCAL_IDENTIFIER = 21843;//U 0x55, S 0x53
25 |
26 | public static final int PROTOCOL_IDENTIFIER_LENGTH = 2;
27 | public static final int LENGTH_LENGTH = 4;
28 | public static final int HEADER_LENGTH = PROTOCOL_IDENTIFIER_LENGTH + LENGTH_LENGTH;
29 |
30 | public static final int PORT = 21843;
31 | }
32 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/session/PacketHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.session;
21 |
22 | import com.us.openserver.protocols.BinaryReader;
23 |
24 | public class PacketHandler implements Runnable
25 | {
26 | private Session session;
27 | private BinaryReader br;
28 | private Exception exception;
29 | private Thread t;
30 | private static int id;
31 |
32 | public PacketHandler(Session session, BinaryReader br)
33 | {
34 | this.session = session;
35 | this.br = br;
36 | }
37 |
38 | public void execute()
39 | {
40 | t = new Thread(this, "PacketHandler" + id++);
41 | t.start();
42 | }
43 |
44 | public void run()
45 | {
46 | try
47 | {
48 | session.onPacketReceived(br);
49 | }
50 | catch (Exception ex)
51 | {
52 | exception = ex;
53 | }
54 | }
55 |
56 | public Exception getException()
57 | {
58 | return exception;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/session/PacketReadTypes.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.session;
21 |
22 | public class PacketReadTypes
23 | {
24 | public static final byte Header = 0x00;
25 | public static final byte HeaderComplete = 0x01;
26 | public static final byte Payload = 0x02;
27 | }
28 |
--------------------------------------------------------------------------------
/Clients/Java/src/com/us/openserver/session/SessionCloser.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.session;
21 |
22 | import com.us.openserver.session.Session;
23 |
24 | public class SessionCloser implements Runnable
25 | {
26 | private Session session;
27 | private int protocolId;
28 | private static int id;
29 |
30 | public SessionCloser(Session session)
31 | {
32 | this.session = session;
33 | }
34 |
35 | public void close()
36 | {
37 | close(0);
38 | }
39 |
40 | public void close(int protocolId)
41 | {
42 | try
43 | {
44 | if (protocolId > 0)
45 | session.close(protocolId);
46 | else
47 | session.close();
48 | }
49 | catch (Exception ex)
50 | {
51 | }
52 | }
53 |
54 | public void closeBackgroundThread()
55 | {
56 | closeBackgroundThread(0);
57 | }
58 |
59 | public void closeBackgroundThread(int protocolId)
60 | {
61 | this.protocolId = protocolId;
62 | Thread t = new Thread(this, "SessionCloser" + ++id);
63 | t.start();
64 | }
65 |
66 | public void run()
67 | {
68 | close(protocolId);
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/AuthenticationProtocolBase.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/AuthenticationProtocolBase.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("AuthenticationProtocolBase_INCLUDE_ALL")
9 | #ifdef AuthenticationProtocolBase_RESTRICT
10 | #define AuthenticationProtocolBase_INCLUDE_ALL 0
11 | #else
12 | #define AuthenticationProtocolBase_INCLUDE_ALL 1
13 | #endif
14 | #undef AuthenticationProtocolBase_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsAuthenticationProtocolBase_) && (AuthenticationProtocolBase_INCLUDE_ALL || defined(ComUsOpenserverProtocolsAuthenticationProtocolBase_INCLUDE))
17 | #define ComUsOpenserverProtocolsAuthenticationProtocolBase_
18 |
19 | #define ProtocolBase_RESTRICT 1
20 | #define ComUsOpenserverProtocolsProtocolBase_INCLUDE 1
21 | #include "ProtocolBase.h"
22 |
23 | @interface ComUsOpenserverProtocolsAuthenticationProtocolBase : ComUsOpenserverProtocolsProtocolBase {
24 | @public
25 | jboolean isAuthenticated_;
26 | NSString *userName_;
27 | id userId_;
28 | }
29 |
30 | #pragma mark Public
31 |
32 | - (instancetype)init;
33 |
34 | - (jboolean)getIsAuthenticated;
35 |
36 | - (id)getUserId;
37 |
38 | - (NSString *)getUserName;
39 |
40 | @end
41 |
42 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsAuthenticationProtocolBase)
43 |
44 | J2OBJC_FIELD_SETTER(ComUsOpenserverProtocolsAuthenticationProtocolBase, userName_, NSString *)
45 | J2OBJC_FIELD_SETTER(ComUsOpenserverProtocolsAuthenticationProtocolBase, userId_, id)
46 |
47 | FOUNDATION_EXPORT void ComUsOpenserverProtocolsAuthenticationProtocolBase_init(ComUsOpenserverProtocolsAuthenticationProtocolBase *self);
48 |
49 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsAuthenticationProtocolBase)
50 |
51 | #endif
52 |
53 | #pragma pop_macro("AuthenticationProtocolBase_INCLUDE_ALL")
54 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/AuthenticationProtocolBase.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/AuthenticationProtocolBase.java
4 | //
5 |
6 | #include "AuthenticationProtocolBase.h"
7 | #include "J2ObjC_source.h"
8 | #include "ProtocolBase.h"
9 |
10 | @implementation ComUsOpenserverProtocolsAuthenticationProtocolBase
11 |
12 | - (jboolean)getIsAuthenticated {
13 | return isAuthenticated_;
14 | }
15 |
16 | - (NSString *)getUserName {
17 | return userName_;
18 | }
19 |
20 | - (id)getUserId {
21 | return userId_;
22 | }
23 |
24 | J2OBJC_IGNORE_DESIGNATED_BEGIN
25 | - (instancetype)init {
26 | ComUsOpenserverProtocolsAuthenticationProtocolBase_init(self);
27 | return self;
28 | }
29 | J2OBJC_IGNORE_DESIGNATED_END
30 |
31 | + (const J2ObjcClassInfo *)__metadata {
32 | static const J2ObjcMethodInfo methods[] = {
33 | { "getIsAuthenticated", NULL, "Z", 0x1, NULL, NULL },
34 | { "getUserName", NULL, "Ljava.lang.String;", 0x1, NULL, NULL },
35 | { "getUserId", NULL, "Ljava.lang.Object;", 0x1, NULL, NULL },
36 | { "init", NULL, NULL, 0x1, NULL, NULL },
37 | };
38 | static const J2ObjcFieldInfo fields[] = {
39 | { "isAuthenticated_", NULL, 0x4, "Z", NULL, NULL, .constantValue.asLong = 0 },
40 | { "userName_", NULL, 0x4, "Ljava.lang.String;", NULL, NULL, .constantValue.asLong = 0 },
41 | { "userId_", NULL, 0x4, "Ljava.lang.Object;", NULL, NULL, .constantValue.asLong = 0 },
42 | };
43 | static const J2ObjcClassInfo _ComUsOpenserverProtocolsAuthenticationProtocolBase = { 2, "AuthenticationProtocolBase", "com.us.openserver.protocols", NULL, 0x401, 4, methods, 3, fields, 0, NULL, 0, NULL, NULL, NULL };
44 | return &_ComUsOpenserverProtocolsAuthenticationProtocolBase;
45 | }
46 |
47 | @end
48 |
49 | void ComUsOpenserverProtocolsAuthenticationProtocolBase_init(ComUsOpenserverProtocolsAuthenticationProtocolBase *self) {
50 | ComUsOpenserverProtocolsProtocolBase_init(self);
51 | }
52 |
53 | J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComUsOpenserverProtocolsAuthenticationProtocolBase)
54 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/ConsoleLogger.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ConsoleLogger.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("ConsoleLogger_INCLUDE_ALL")
9 | #ifdef ConsoleLogger_RESTRICT
10 | #define ConsoleLogger_INCLUDE_ALL 0
11 | #else
12 | #define ConsoleLogger_INCLUDE_ALL 1
13 | #endif
14 | #undef ConsoleLogger_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverConsoleLogger_) && (ConsoleLogger_INCLUDE_ALL || defined(ComUsOpenserverConsoleLogger_INCLUDE))
17 | #define ComUsOpenserverConsoleLogger_
18 |
19 | #define Logger_RESTRICT 1
20 | #define ComUsOpenserverLogger_INCLUDE 1
21 | #include "Logger.h"
22 |
23 | @class ComUsOpenserverLevel;
24 |
25 | @interface ComUsOpenserverConsoleLogger : ComUsOpenserverLogger
26 |
27 | #pragma mark Public
28 |
29 | - (instancetype)init;
30 |
31 | - (void)logWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
32 | withNSString:(NSString *)message;
33 |
34 | @end
35 |
36 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverConsoleLogger)
37 |
38 | FOUNDATION_EXPORT void ComUsOpenserverConsoleLogger_init(ComUsOpenserverConsoleLogger *self);
39 |
40 | FOUNDATION_EXPORT ComUsOpenserverConsoleLogger *new_ComUsOpenserverConsoleLogger_init() NS_RETURNS_RETAINED;
41 |
42 | FOUNDATION_EXPORT ComUsOpenserverConsoleLogger *create_ComUsOpenserverConsoleLogger_init();
43 |
44 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverConsoleLogger)
45 |
46 | #endif
47 |
48 | #pragma pop_macro("ConsoleLogger_INCLUDE_ALL")
49 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/IClientObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/IClientObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("IClientObserver_INCLUDE_ALL")
9 | #ifdef IClientObserver_RESTRICT
10 | #define IClientObserver_INCLUDE_ALL 0
11 | #else
12 | #define IClientObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef IClientObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverIClientObserver_) && (IClientObserver_INCLUDE_ALL || defined(ComUsOpenserverIClientObserver_INCLUDE))
17 | #define ComUsOpenserverIClientObserver_
18 |
19 | @class JavaLangException;
20 |
21 | @protocol ComUsOpenserverIClientObserver < NSObject, JavaObject >
22 |
23 | - (void)onConnectionLostWithJavaLangException:(JavaLangException *)ex;
24 |
25 | @end
26 |
27 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverIClientObserver)
28 |
29 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverIClientObserver)
30 |
31 | #endif
32 |
33 | #pragma pop_macro("IClientObserver_INCLUDE_ALL")
34 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/IClientObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/IClientObserver.java
4 | //
5 |
6 | #include "IClientObserver.h"
7 | #include "J2ObjC_source.h"
8 | #include "java/lang/Exception.h"
9 |
10 | @interface ComUsOpenserverIClientObserver : NSObject
11 |
12 | @end
13 |
14 | @implementation ComUsOpenserverIClientObserver
15 |
16 | + (const J2ObjcClassInfo *)__metadata {
17 | static const J2ObjcMethodInfo methods[] = {
18 | { "onConnectionLostWithJavaLangException:", "onConnectionLost", "V", 0x401, NULL, NULL },
19 | };
20 | static const J2ObjcClassInfo _ComUsOpenserverIClientObserver = { 2, "IClientObserver", "com.us.openserver", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
21 | return &_ComUsOpenserverIClientObserver;
22 | }
23 |
24 | @end
25 |
26 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverIClientObserver)
27 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/ILoggerObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ILoggerObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("ILoggerObserver_INCLUDE_ALL")
9 | #ifdef ILoggerObserver_RESTRICT
10 | #define ILoggerObserver_INCLUDE_ALL 0
11 | #else
12 | #define ILoggerObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef ILoggerObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverILoggerObserver_) && (ILoggerObserver_INCLUDE_ALL || defined(ComUsOpenserverILoggerObserver_INCLUDE))
17 | #define ComUsOpenserverILoggerObserver_
18 |
19 | @class ComUsOpenserverLevel;
20 |
21 | @protocol ComUsOpenserverILoggerObserver < NSObject, JavaObject >
22 |
23 | - (void)onLogMessageWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
24 | withNSString:(NSString *)message;
25 |
26 | @end
27 |
28 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverILoggerObserver)
29 |
30 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverILoggerObserver)
31 |
32 | #endif
33 |
34 | #pragma pop_macro("ILoggerObserver_INCLUDE_ALL")
35 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/ILoggerObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ILoggerObserver.java
4 | //
5 |
6 | #include "ILoggerObserver.h"
7 | #include "J2ObjC_source.h"
8 | #include "Level.h"
9 |
10 | @interface ComUsOpenserverILoggerObserver : NSObject
11 |
12 | @end
13 |
14 | @implementation ComUsOpenserverILoggerObserver
15 |
16 | + (const J2ObjcClassInfo *)__metadata {
17 | static const J2ObjcMethodInfo methods[] = {
18 | { "onLogMessageWithComUsOpenserverLevel:withNSString:", "onLogMessage", "V", 0x401, NULL, NULL },
19 | };
20 | static const J2ObjcClassInfo _ComUsOpenserverILoggerObserver = { 2, "ILoggerObserver", "com.us.openserver", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
21 | return &_ComUsOpenserverILoggerObserver;
22 | }
23 |
24 | @end
25 |
26 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverILoggerObserver)
27 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/PacketReadTypes.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/PacketReadTypes.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("PacketReadTypes_INCLUDE_ALL")
9 | #ifdef PacketReadTypes_RESTRICT
10 | #define PacketReadTypes_INCLUDE_ALL 0
11 | #else
12 | #define PacketReadTypes_INCLUDE_ALL 1
13 | #endif
14 | #undef PacketReadTypes_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionPacketReadTypes_) && (PacketReadTypes_INCLUDE_ALL || defined(ComUsOpenserverSessionPacketReadTypes_INCLUDE))
17 | #define ComUsOpenserverSessionPacketReadTypes_
18 |
19 | @interface ComUsOpenserverSessionPacketReadTypes : NSObject
20 |
21 | #pragma mark Public
22 |
23 | - (instancetype)init;
24 |
25 | @end
26 |
27 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionPacketReadTypes)
28 |
29 | inline jbyte ComUsOpenserverSessionPacketReadTypes_get_Header();
30 | #define ComUsOpenserverSessionPacketReadTypes_Header 0
31 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverSessionPacketReadTypes, Header, jbyte)
32 |
33 | inline jbyte ComUsOpenserverSessionPacketReadTypes_get_HeaderComplete();
34 | #define ComUsOpenserverSessionPacketReadTypes_HeaderComplete 1
35 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverSessionPacketReadTypes, HeaderComplete, jbyte)
36 |
37 | inline jbyte ComUsOpenserverSessionPacketReadTypes_get_Payload();
38 | #define ComUsOpenserverSessionPacketReadTypes_Payload 2
39 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverSessionPacketReadTypes, Payload, jbyte)
40 |
41 | FOUNDATION_EXPORT void ComUsOpenserverSessionPacketReadTypes_init(ComUsOpenserverSessionPacketReadTypes *self);
42 |
43 | FOUNDATION_EXPORT ComUsOpenserverSessionPacketReadTypes *new_ComUsOpenserverSessionPacketReadTypes_init() NS_RETURNS_RETAINED;
44 |
45 | FOUNDATION_EXPORT ComUsOpenserverSessionPacketReadTypes *create_ComUsOpenserverSessionPacketReadTypes_init();
46 |
47 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionPacketReadTypes)
48 |
49 | #endif
50 |
51 | #pragma pop_macro("PacketReadTypes_INCLUDE_ALL")
52 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/PacketReadTypes.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/PacketReadTypes.java
4 | //
5 |
6 | #include "J2ObjC_source.h"
7 | #include "PacketReadTypes.h"
8 |
9 | @implementation ComUsOpenserverSessionPacketReadTypes
10 |
11 | J2OBJC_IGNORE_DESIGNATED_BEGIN
12 | - (instancetype)init {
13 | ComUsOpenserverSessionPacketReadTypes_init(self);
14 | return self;
15 | }
16 | J2OBJC_IGNORE_DESIGNATED_END
17 |
18 | + (const J2ObjcClassInfo *)__metadata {
19 | static const J2ObjcMethodInfo methods[] = {
20 | { "init", NULL, NULL, 0x1, NULL, NULL },
21 | };
22 | static const J2ObjcFieldInfo fields[] = {
23 | { "Header", "Header", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_Header },
24 | { "HeaderComplete", "HeaderComplete", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_HeaderComplete },
25 | { "Payload", "Payload", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_Payload },
26 | };
27 | static const J2ObjcClassInfo _ComUsOpenserverSessionPacketReadTypes = { 2, "PacketReadTypes", "com.us.openserver.session", NULL, 0x1, 1, methods, 3, fields, 0, NULL, 0, NULL, NULL, NULL };
28 | return &_ComUsOpenserverSessionPacketReadTypes;
29 | }
30 |
31 | @end
32 |
33 | void ComUsOpenserverSessionPacketReadTypes_init(ComUsOpenserverSessionPacketReadTypes *self) {
34 | NSObject_init(self);
35 | }
36 |
37 | ComUsOpenserverSessionPacketReadTypes *new_ComUsOpenserverSessionPacketReadTypes_init() {
38 | ComUsOpenserverSessionPacketReadTypes *self = [ComUsOpenserverSessionPacketReadTypes alloc];
39 | ComUsOpenserverSessionPacketReadTypes_init(self);
40 | return self;
41 | }
42 |
43 | ComUsOpenserverSessionPacketReadTypes *create_ComUsOpenserverSessionPacketReadTypes_init() {
44 | return new_ComUsOpenserverSessionPacketReadTypes_init();
45 | }
46 |
47 | J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComUsOpenserverSessionPacketReadTypes)
48 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/SessionCloser.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/SessionCloser.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("SessionCloser_INCLUDE_ALL")
9 | #ifdef SessionCloser_RESTRICT
10 | #define SessionCloser_INCLUDE_ALL 0
11 | #else
12 | #define SessionCloser_INCLUDE_ALL 1
13 | #endif
14 | #undef SessionCloser_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionSessionCloser_) && (SessionCloser_INCLUDE_ALL || defined(ComUsOpenserverSessionSessionCloser_INCLUDE))
17 | #define ComUsOpenserverSessionSessionCloser_
18 |
19 | #define JavaLangRunnable_RESTRICT 1
20 | #define JavaLangRunnable_INCLUDE 1
21 | #include "java/lang/Runnable.h"
22 |
23 | @class ComUsOpenserverSessionSession;
24 |
25 | @interface ComUsOpenserverSessionSessionCloser : NSObject < JavaLangRunnable >
26 |
27 | #pragma mark Public
28 |
29 | - (instancetype)initWithComUsOpenserverSessionSession:(ComUsOpenserverSessionSession *)session;
30 |
31 | - (void)close;
32 |
33 | - (void)closeWithInt:(jint)protocolId;
34 |
35 | - (void)closeBackgroundThread;
36 |
37 | - (void)closeBackgroundThreadWithInt:(jint)protocolId;
38 |
39 | - (void)run;
40 |
41 | @end
42 |
43 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionSessionCloser)
44 |
45 | FOUNDATION_EXPORT void ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSessionCloser *self, ComUsOpenserverSessionSession *session);
46 |
47 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionCloser *new_ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSession *session) NS_RETURNS_RETAINED;
48 |
49 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionCloser *create_ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSession *session);
50 |
51 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionSessionCloser)
52 |
53 | #endif
54 |
55 | #pragma pop_macro("SessionCloser_INCLUDE_ALL")
56 |
--------------------------------------------------------------------------------
/Clients/Objective-C/src/SessionOpener.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/SessionOpener.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("SessionOpener_INCLUDE_ALL")
9 | #ifdef SessionOpener_RESTRICT
10 | #define SessionOpener_INCLUDE_ALL 0
11 | #else
12 | #define SessionOpener_INCLUDE_ALL 1
13 | #endif
14 | #undef SessionOpener_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionSessionOpener_) && (SessionOpener_INCLUDE_ALL || defined(ComUsOpenserverSessionSessionOpener_INCLUDE))
17 | #define ComUsOpenserverSessionSessionOpener_
18 |
19 | #define JavaLangRunnable_RESTRICT 1
20 | #define JavaLangRunnable_INCLUDE 1
21 | #include "java/lang/Runnable.h"
22 |
23 | @class ComUsOpenserverClient;
24 | @class ComUsOpenserverSessionSession;
25 |
26 | @interface ComUsOpenserverSessionSessionOpener : NSObject < JavaLangRunnable >
27 |
28 | #pragma mark Public
29 |
30 | - (instancetype)initWithComUsOpenserverClient:(ComUsOpenserverClient *)client;
31 |
32 | - (ComUsOpenserverSessionSession *)connect;
33 |
34 | - (ComUsOpenserverSessionSession *)connectBackgroundThread;
35 |
36 | - (void)run;
37 |
38 | @end
39 |
40 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionSessionOpener)
41 |
42 | FOUNDATION_EXPORT void ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverSessionSessionOpener *self, ComUsOpenserverClient *client);
43 |
44 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionOpener *new_ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverClient *client) NS_RETURNS_RETAINED;
45 |
46 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionOpener *create_ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverClient *client);
47 |
48 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionSessionOpener)
49 |
50 | #endif
51 |
52 | #pragma pop_macro("SessionOpener_INCLUDE_ALL")
53 |
--------------------------------------------------------------------------------
/Clients/Windows/OpenServerWindowsClient.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenServerWindowsClient", "OpenServerWindowsClient\OpenServerWindowsClient.csproj", "{957CED10-8357-4482-AD88-6B75CE20B254}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestClient", "TestClient\TestClient.csproj", "{CE72A69B-C8CF-43BF-B172-E5F162835727}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {957CED10-8357-4482-AD88-6B75CE20B254}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {957CED10-8357-4482-AD88-6B75CE20B254}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {957CED10-8357-4482-AD88-6B75CE20B254}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {957CED10-8357-4482-AD88-6B75CE20B254}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {CE72A69B-C8CF-43BF-B172-E5F162835727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {CE72A69B-C8CF-43BF-B172-E5F162835727}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {CE72A69B-C8CF-43BF-B172-E5F162835727}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {CE72A69B-C8CF-43BF-B172-E5F162835727}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Clients/Windows/OpenServerWindowsClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("OpenServerWindowsClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Clients/Windows/TestClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("TestClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Clients/Windows/TestClient/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Clients/Windows/bin/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/Windows/bin/log4net.dll
--------------------------------------------------------------------------------
/Clients/Windows/packages/log4net.2.0.5/lib/net35-full/log4net.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/Windows/packages/log4net.2.0.5/lib/net35-full/log4net.dll
--------------------------------------------------------------------------------
/Clients/WindowsMobile/OpenServerWindowsMobile/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("OpenServerWindowsMobile")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Assets/Logo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/WindowsMobile/TestClient/Assets/Logo.scale-240.png
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Assets/SmallLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/WindowsMobile/TestClient/Assets/SmallLogo.scale-240.png
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Assets/SplashScreen.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/WindowsMobile/TestClient/Assets/SplashScreen.scale-240.png
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Assets/Square71x71Logo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/WindowsMobile/TestClient/Assets/Square71x71Logo.scale-240.png
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Assets/StoreLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/WindowsMobile/TestClient/Assets/StoreLogo.scale-240.png
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Assets/WideLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Clients/WindowsMobile/TestClient/Assets/WideLogo.scale-240.png
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
10 |
11 | TestClient
12 | Michael
13 | Assets\StoreLogo.png
14 |
15 |
16 |
17 | 6.3.1
18 | 6.3.1
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Clients/WindowsMobile/TestClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("TestClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{7CF6DF6D-3B04-46F8-A40B-537D21BCA0B4}") = "OpenServerDocumentation", "OpenServerDocumentation\OpenServerDocumentation.shfbproj", "{A79022A4-E4C1-4F86-BE26-7DF61B347826}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {A79022A4-E4C1-4F86-BE26-7DF61B347826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {A79022A4-E4C1-4F86-BE26-7DF61B347826}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {A79022A4-E4C1-4F86-BE26-7DF61B347826}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {A79022A4-E4C1-4F86-BE26-7DF61B347826}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Architecture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Architecture.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Android/Android.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/Android/Android.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Client-Side Components.aml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 | The DotNetOpenServer SDK contains the following client APIs:
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Mac/Mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/Mac/Mac.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Mac/MacXCodeOptions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/Mac/MacXCodeOptions.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Mac/MacXCodeTemplate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/Mac/MacXCodeTemplate.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Portable/Portable.snippets:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 | Dictionary<ushort, ProtocolConfiguration> protocolConfigurations =
6 | new Dictionary<ushort, ProtocolConfiguration>();
7 |
8 | protocolConfigurations.Add(KeepAliveProtocol.PROTOCOL_IDENTIFIER,
9 | new ProtocolConfiguration(KeepAliveProtocol.PROTOCOL_IDENTIFIER, typeof(KeepAliveProtocol)));
10 |
11 | protocolConfigurations.Add(WinAuthProtocol.PROTOCOL_IDENTIFIER,
12 | new ProtocolConfiguration(WinAuthProtocol.PROTOCOL_IDENTIFIER, typeof(WinAuthProtocolClient)));
13 |
14 | protocolConfigurations.Add(HelloProtocol.PROTOCOL_IDENTIFIER,
15 | new ProtocolConfiguration(HelloProtocol.PROTOCOL_IDENTIFIER, typeof(HelloProtocolClient)));
16 |
17 |
18 |
19 | -
20 |
21 | client = new Client(cfg, protocolConfigurations);
22 |
23 |
24 |
25 | -
26 |
27 | client.Connect();
28 |
29 |
30 |
31 | -
32 |
33 | client.Initialize(KeepAliveProtocol.PROTOCOL_IDENTIFIER);
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Windows Mobile/Windows Mobile .snippets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 | using US.OpenServer.Client.Configuration;
7 | using US.OpenServer.Protocols;
8 | using US.OpenServer.Protocols.Hello;
9 | using US.OpenServer.Protocols.KeepAlive;
10 | using US.OpenServer.Protocols.WinAuth;
11 | using US.OpenServer.WindowsMobile;
12 |
13 |
14 |
15 | -
16 |
17 | ServerConfiguration cfg = new ServerConfiguration();
18 | cfg.Host = txtHost.Text;
19 | cfg.TlsConfiguration.Enabled = true;
20 |
21 |
22 |
23 | -
24 |
25 | WinAuthProtocolClient wap = (WinAuthProtocolClient)client.Initialize(WinAuthProtocol.PROTOCOL_IDENTIFIER);
26 | if (!wap.Authenticate(txtUserName.Text, txtPassword.Password))
27 | throw new Exception("Access denied.");
28 |
29 |
30 |
31 | -
32 |
33 | client.Initialize(KeepAliveProtocol.PROTOCOL_IDENTIFIER);
34 |
35 |
36 |
37 | -
38 |
39 | HelloProtocolClient hpc = (HelloProtocolClient)client.Initialize(HelloProtocol.PROTOCOL_IDENTIFIER);
40 | ShowMessageBox(hpc.Hello(txtUserName.Text));
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Windows Mobile/WindowsMobile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/Windows Mobile/WindowsMobile.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/Windows/Windows.snippets:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 | using US.OpenServer;
6 | using US.OpenServer.Protocols.Hello;
7 | using US.OpenServer.Protocols.KeepAlive;
8 | using US.OpenServer.Protocols.WinAuth;
9 |
10 |
11 |
12 | -
13 |
14 | Client client = new Client();
15 |
16 |
17 |
18 | -
19 |
20 | using US.OpenServer;
21 | using US.OpenServer.Configuration;
22 | using US.OpenServer.Protocols;
23 | using US.OpenServer.Protocols.Hello;
24 | using US.OpenServer.Protocols.KeepAlive;
25 | using US.OpenServer.Protocols.WinAuth;
26 |
27 |
28 |
29 | -
30 |
31 | ServerConfiguration cfg = new ServerConfiguration();
32 | cfg.Host = "yourserver.com";
33 | cfg.TlsConfiguration.Enabled = true;
34 |
35 |
36 |
37 | -
38 |
39 | string userName = "TestUser";
40 | WinAuthProtocolClient wap = client.Initialize(WinAuthProtocol.PROTOCOL_IDENTIFIER) as WinAuthProtocolClient;
41 | if (!wap.Authenticate(userName, "T3stus3r", null))
42 | throw new Exception("Access denied.");
43 |
44 |
45 |
46 | -
47 |
48 | HelloProtocolClient hpc = (HelloProtocolClient)client.Initialize(HelloProtocol.PROTOCOL_IDENTIFIER);
49 | string serverResponse = hpc.Hello(userName);
50 | Console.WriteLine(serverResponse);
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/iOS/iOS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/iOS/iOS.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/iOS/iOSXCodeOptions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/iOS/iOSXCodeOptions.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Client-Side Components/iOS/iOSXCodeTemplate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/Client-Side Components/iOS/iOSXCodeTemplate.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Configuration/Configuring Windows Components.aml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ConfiguringWindowsComponents
4 |
7 |
8 |
9 |
10 | DotNetOpenServer enables you to configure the
11 | T:US.OpenServer.Server and
12 | T:US.OpenServer.Client either
13 | using the app.config file or programatically. For more information, follow the
14 | links below.
15 |
16 |
17 |
18 |
19 | app.config Reference Document
20 |
21 | M:US.OpenServer.Protocols.WinAuth.WinAuthProtocolConfigurationServer.Initialize(System.UInt16,System.String,System.String,System.Xml.XmlNode)
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/J2ObjC.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/J2ObjC.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/ProjectHierarchy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/Content/ProjectHierarchy.png
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/Content/Protocols/Creating Protocols.aml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 | This topic lists 3 tutorials that will show you how to implement your own
10 | application layer protocol in C# for Windows and Windows Mobile applications, in
11 | Java for standard Java and Android applications, and in Objective-C for Mac,
12 | iPhone and iPad applications.
13 |
14 |
15 |
16 |
17 | Platforms
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Documentation/OpenServerDocumentation/icons/Help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Documentation/OpenServerDocumentation/icons/Help.png
--------------------------------------------------------------------------------
/OpenServer/OpenServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("OpenServer")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/OpenServer/TestServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("TestServer")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/OpenServer/TestServer/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenServerShared", "OpenServerShared\OpenServerShared.csproj", "{28525B70-8554-4541-A703-5EFD768B782B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {28525B70-8554-4541-A703-5EFD768B782B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {28525B70-8554-4541-A703-5EFD768B782B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {28525B70-8554-4541-A703-5EFD768B782B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {28525B70-8554-4541-A703-5EFD768B782B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/Level.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
21 | namespace US.OpenServer
22 | {
23 | ///
24 | /// Enum of log message priorities.
25 | ///
26 | public enum Level
27 | {
28 | ///
29 | /// Specifies a debug message.
30 | ///
31 | Debug,
32 | ///
33 | /// Specifies an information message.
34 | ///
35 | Info,
36 | ///
37 | /// Specifies a notice message.
38 | ///
39 | Notice,
40 | ///
41 | /// Specifies a critical message.
42 | ///
43 | Critical,
44 | ///
45 | /// Specifies an error message.
46 | ///
47 | Error
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/PacketReadTypes.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
21 | namespace US.OpenServer
22 | {
23 | ///
24 | /// Enum of packet read states. Defines the current state of the socket reader
25 | /// while reading command packets from TCP packets.
26 | ///
27 | public enum PacketReadTypes
28 | {
29 | ///
30 | /// The initial state. A new command packet has been received. The socket reader is
31 | /// to read the header.
32 | ///
33 | Header,
34 |
35 | ///
36 | /// The socket reader has finished reading the header. The socket reader is to read
37 | /// the payload.
38 | ///
39 | HeaderComplete,
40 |
41 | ///
42 | /// The socket reader is currently reading the payload. The payload may be received
43 | /// over multiple TCP packets.
44 | ///
45 | Payload,
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("OpenServerShared")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/Protocols/CapabilitiesProtocolCommands.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | namespace US.OpenServer.Protocols
21 | {
22 | ///
23 | /// Enumeration that defines the available commands.
24 | ///
25 | public enum CapabilitiesProtocolCommands : byte
26 | {
27 | ///
28 | /// Sent by clients to get a list of server supported protocol IDs.
29 | ///
30 | GET_PROTOCOL_IDS = 0x01,
31 |
32 | ///
33 | /// Sent by the server in response to a command
34 | /// packet.
35 | ///
36 | PROTOCOL_IDS = 0x02,
37 |
38 | ///
39 | /// Sent by the server when the client requests a protocol that is not supported
40 | /// by the server.
41 | ///
42 | ERROR = 0xFF,
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/Protocols/SessionLayerProtocol.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
21 | namespace US.OpenServer.Protocols
22 | {
23 | ///
24 | /// Static class that defines constants for the Session Layer Protocol.
25 | ///
26 | public static class SessionLayerProtocol
27 | {
28 | ///
29 | /// The protocol identifier.
30 | ///
31 | public const ushort PROTOCAL_IDENTIFIER = 21843;//U 0x55, S 0x53
32 |
33 | ///
34 | /// The length of the protocol identifier.
35 | ///
36 | public const int PROTOCOL_IDENTIFIER_LENGTH = 2;
37 |
38 | ///
39 | /// The length of the length field.
40 | ///
41 | public const int LENGTH_LENGTH = 4;
42 |
43 | ///
44 | /// The header length.
45 | ///
46 | public const int HEADER_LENGTH = PROTOCOL_IDENTIFIER_LENGTH + LENGTH_LENGTH;
47 |
48 | ///
49 | /// The default server port.
50 | ///
51 | public const ushort PORT = 21843;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/SessionId.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System;
21 |
22 | namespace US.OpenServer
23 | {
24 | ///
25 | /// Static class used to create a unique identifier that is associated with each
26 | /// socket connection.
27 | ///
28 | public static class SessionId
29 | {
30 | private static ushort nextId = 0;
31 | private static object synchObject = new object();
32 |
33 | ///
34 | /// Gets the next unique identifier.
35 | ///
36 | /// A UInt16 that specifies the unique identifier.
37 | public static ushort NextId
38 | {
39 | get
40 | {
41 | lock (synchObject)
42 | {
43 | if (nextId == UInt16.MaxValue)
44 | nextId = UInt16.MinValue;
45 | else
46 | nextId++;
47 |
48 | return nextId;
49 | }
50 | }
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/OpenServerShared/OpenServerShared/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/OpenServerWindowsShared/OpenServerWindowsShared.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenServerWindowsShared", "OpenServerWindowsShared\OpenServerWindowsShared.csproj", "{FD59CEA4-C9EE-470C-9C49-934785967EE5}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {FD59CEA4-C9EE-470C-9C49-934785967EE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {FD59CEA4-C9EE-470C-9C49-934785967EE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {FD59CEA4-C9EE-470C-9C49-934785967EE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {FD59CEA4-C9EE-470C-9C49-934785967EE5}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/OpenServerWindowsShared/OpenServerWindowsShared/ConsoleLogger.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System;
21 |
22 | namespace US.OpenServer
23 | {
24 | ///
25 | /// Class that logs to the console.
26 | ///
27 | public class ConsoleLogger : Logger
28 | {
29 | #region Public Functions
30 | ///
31 | /// Logs a message.
32 | ///
33 | /// The level of the message.
34 | /// The message.
35 | public override void Log(Level level, string message)
36 | {
37 | base.Log(level, message);
38 |
39 | if (level == Level.Debug && !LogDebug)
40 | return;
41 |
42 | Console.WriteLine(string.Format("{0} {1}", level, message));
43 | }
44 | #endregion
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/OpenServerWindowsShared/OpenServerWindowsShared/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("OpenServerWindowsShared")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 | [assembly: log4net.Config.XmlConfigurator()]
32 |
--------------------------------------------------------------------------------
/OpenServerWindowsShared/OpenServerWindowsShared/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Java/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Java/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | DatabaseAuthProtocol
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Java/src/com/us/openserver/protocols/databaseauth/DatabaseAuthProtocol.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.databaseauth;
21 |
22 | import com.us.openserver.Level;
23 | import com.us.openserver.protocols.AuthenticationProtocolBase;
24 |
25 | public class DatabaseAuthProtocol extends AuthenticationProtocolBase
26 | {
27 | public static final int PROTOCOL_IDENTIFIER = 0x0003;
28 |
29 | protected DatabaseAuthProtocol()
30 | {
31 | }
32 |
33 | protected void log(Level level, String message)
34 | {
35 | session.log(level, String.format("[DatabaseAuth] %s", message));
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Java/src/com/us/openserver/protocols/databaseauth/DatabaseAuthProtocolCommands.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.databaseauth;
21 |
22 | public class DatabaseAuthProtocolCommands
23 | {
24 | public static final int AUTHENTICATE = 0x01;
25 | public static final int AUTHENTICATED = 0x02;
26 | public static final int ACCESS_DENIED = 0x03;
27 | public static final int ERROR = 0xFF;
28 | }
29 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Windows/DatabaseAuthProtocolClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("DatabaseProtocolClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
32 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Windows/DatabaseAuthProtocolServer/DB.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using US.OpenServer.Data.SqlServer;
5 |
6 | namespace US.OpenServer.Protocols.DatabaseAuth
7 | {
8 | public class DB : SqlServerBase
9 | {
10 | public DB(string name) : base (name)
11 | {
12 | }
13 |
14 | public int Authenticate(string userName, string password)
15 | {
16 | string cmd = string.Format(Properties.Resources.SQL_AUTHENTICATE, userName);
17 | DataTable dt = ExecuteQuery(cmd);
18 | if (dt.Rows.Count < 1)
19 | throw new DatabaseAuthProtocolException(DatabaseAuthProtocolCommands.ACCESS_DENIED_USER_NOT_FOUND);
20 |
21 | DataRow dr = dt.Rows[0];
22 | string actualPassword = GetString(dr, "password");
23 | if (actualPassword != password)
24 | throw new DatabaseAuthProtocolException(DatabaseAuthProtocolCommands.ACCESS_DENIED_INVALID_PASSWORD);
25 |
26 | bool isVerified = GetBool(dr, "isVerified");
27 | if (!isVerified)
28 | throw new DatabaseAuthProtocolException(DatabaseAuthProtocolCommands.ACCESS_DENIED_EMAIL_NOT_VERIFIED);
29 |
30 | return GetInt(dr, "id");
31 | }
32 |
33 | public bool IsInRole(int accountId, string role)
34 | {
35 | List retVal = new List();
36 |
37 | string cmd = string.Format(Properties.Resources.SQL_IS_IN_ROLE, accountId, role);
38 | return ExecuteQueryIdentity(cmd) == 0 ? false : true;
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Windows/DatabaseAuthProtocolServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("DatabaseAuthProtocolServer")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Windows/DatabaseAuthProtocolShared/DatabaseAuthProtocolException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace US.OpenServer.Protocols.DatabaseAuth
4 | {
5 | public class DatabaseAuthProtocolException : Exception
6 | {
7 | public DatabaseAuthProtocolCommands ErrorCode { get; private set; }
8 |
9 | public DatabaseAuthProtocolException(DatabaseAuthProtocolCommands errorCode)
10 | : base ()
11 | {
12 | ErrorCode = errorCode;
13 | }
14 |
15 | public override string Message
16 | {
17 | get
18 | {
19 | switch (ErrorCode)
20 | {
21 | case DatabaseAuthProtocolCommands.ACCESS_DENIED:
22 | return DatabaseAuthProtocol.ERROR_ACCESS_DENIED;
23 |
24 | case DatabaseAuthProtocolCommands.ACCESS_DENIED_EMAIL_NOT_VERIFIED:
25 | return DatabaseAuthProtocol.ERROR_NOT_VERIFIED;
26 |
27 | case DatabaseAuthProtocolCommands.ACCESS_DENIED_INVALID_PASSWORD:
28 | return DatabaseAuthProtocol.ERROR_USER_NOT_FOUND;
29 | }
30 | return base.Message;
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Protocols/DatabaseAuth/Windows/DatabaseAuthProtocolShared/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("DatabaseAuthProtocolShared")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/Hello/Java/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Protocols/Hello/Java/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | HelloProtocol
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Protocols/Hello/Java/src/com/us/openserver/protocols/hello/HelloProtocol.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.hello;
21 |
22 | import com.us.openserver.Level;
23 | import com.us.openserver.protocols.ProtocolBase;
24 |
25 | public class HelloProtocol extends ProtocolBase
26 | {
27 | public static final int PROTOCOL_IDENTIFIER = 0x000A;
28 |
29 | protected HelloProtocol()
30 | {
31 | }
32 |
33 | protected void log(Level level, String message)
34 | {
35 | session.log(level, String.format("[Hello] %s", message));
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Protocols/Hello/Java/src/com/us/openserver/protocols/hello/IHelloProtocolObserver.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.hello;
21 |
22 | public interface IHelloProtocolObserver
23 | {
24 | public void onHelloComplete(String serverResponse);
25 | }
26 |
--------------------------------------------------------------------------------
/Protocols/Hello/Objective-C/src/HelloProtocol.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/HelloProtocol.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("HelloProtocol_INCLUDE_ALL")
9 | #ifdef HelloProtocol_RESTRICT
10 | #define HelloProtocol_INCLUDE_ALL 0
11 | #else
12 | #define HelloProtocol_INCLUDE_ALL 1
13 | #endif
14 | #undef HelloProtocol_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsHelloHelloProtocol_) && (HelloProtocol_INCLUDE_ALL || defined(ComUsOpenserverProtocolsHelloHelloProtocol_INCLUDE))
17 | #define ComUsOpenserverProtocolsHelloHelloProtocol_
18 |
19 | #define ProtocolBase_RESTRICT 1
20 | #define ComUsOpenserverProtocolsProtocolBase_INCLUDE 1
21 | #include "ProtocolBase.h"
22 |
23 | @class ComUsOpenserverLevel;
24 |
25 | @interface ComUsOpenserverProtocolsHelloHelloProtocol : ComUsOpenserverProtocolsProtocolBase
26 |
27 | #pragma mark Protected
28 |
29 | - (instancetype)init;
30 |
31 | - (void)logWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
32 | withNSString:(NSString *)message;
33 |
34 | @end
35 |
36 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsHelloHelloProtocol)
37 |
38 | inline jint ComUsOpenserverProtocolsHelloHelloProtocol_get_PROTOCOL_IDENTIFIER();
39 | #define ComUsOpenserverProtocolsHelloHelloProtocol_PROTOCOL_IDENTIFIER 10
40 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverProtocolsHelloHelloProtocol, PROTOCOL_IDENTIFIER, jint)
41 |
42 | FOUNDATION_EXPORT void ComUsOpenserverProtocolsHelloHelloProtocol_init(ComUsOpenserverProtocolsHelloHelloProtocol *self);
43 |
44 | FOUNDATION_EXPORT ComUsOpenserverProtocolsHelloHelloProtocol *new_ComUsOpenserverProtocolsHelloHelloProtocol_init() NS_RETURNS_RETAINED;
45 |
46 | FOUNDATION_EXPORT ComUsOpenserverProtocolsHelloHelloProtocol *create_ComUsOpenserverProtocolsHelloHelloProtocol_init();
47 |
48 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsHelloHelloProtocol)
49 |
50 | #endif
51 |
52 | #pragma pop_macro("HelloProtocol_INCLUDE_ALL")
53 |
--------------------------------------------------------------------------------
/Protocols/Hello/Windows/HelloProtocolClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("WinAuthProtocolClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
32 |
--------------------------------------------------------------------------------
/Protocols/Hello/Windows/HelloProtocolServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("HelloProtocolServer")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/Hello/Windows/HelloProtocolShared/HelloProtocol.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | namespace US.OpenServer.Protocols.Hello
21 | {
22 | ///
23 | /// Base abstract class for the Hello Protocol implementation.
24 | ///
25 | public abstract class HelloProtocol : ProtocolBase
26 | {
27 | ///
28 | /// The unique protocol identifier
29 | ///
30 | public const ushort PROTOCOL_IDENTIFIER = 0x000A;
31 |
32 | ///
33 | /// Creates a HelloProtocol object.
34 | ///
35 | protected HelloProtocol()
36 | {
37 | }
38 |
39 | ///
40 | /// Log's a message.
41 | ///
42 | /// A Level that specifies the priority of the message.
43 | /// A string that contains the message.
44 | protected override void Log(Level level, string message)
45 | {
46 | Session.Log(level, string.Format("[Hello] {0}", message));
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Protocols/Hello/Windows/HelloProtocolShared/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("HelloProtocolShared")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/KeepAlive/Java/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Protocols/KeepAlive/Java/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | KeepAliveProtocol
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Protocols/KeepAlive/Java/src/com/us/openserver/protocols/keepalive/KeepAliveProtocolCommands.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.keepalive;
21 |
22 | public class KeepAliveProtocolCommands
23 | {
24 | public static final int KEEP_ALIVE = 0x01;
25 | public static final int QUIT = 0xFF;
26 | }
27 |
--------------------------------------------------------------------------------
/Protocols/KeepAlive/Windows/KeepAliveProtocol.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeepAliveProtocol", "KeepAliveProtocol\KeepAliveProtocol.csproj", "{B1DFE41B-1232-4C36-8587-61C17DB40152}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {B1DFE41B-1232-4C36-8587-61C17DB40152}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {B1DFE41B-1232-4C36-8587-61C17DB40152}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {B1DFE41B-1232-4C36-8587-61C17DB40152}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {B1DFE41B-1232-4C36-8587-61C17DB40152}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Protocols/KeepAlive/Windows/KeepAliveProtocol/KeepAliveProtocolCommands.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 |
21 | namespace US.OpenServer.Protocols.KeepAlive
22 | {
23 | ///
24 | /// Enumeration that defines the available commands.
25 | ///
26 | public enum KeepAliveProtocolCommands : byte
27 | {
28 | ///
29 | /// Sent by both the client and server to keep an idle session open.
30 | ///
31 | KEEP_ALIVE = 0x01,
32 | ///
33 | /// Sent by both the client and server to provide notification to the end point
34 | /// the session is closing.
35 | ///
36 | QUIT = 0xFF,
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Protocols/KeepAlive/Windows/KeepAliveProtocol/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("KeepAliveProtocol")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Java/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Java/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | WinAuthProtocol
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Java/src/com/us/openserver/protocols/winauth/WinAuthProtocol.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.winauth;
21 |
22 | import com.us.openserver.Level;
23 | import com.us.openserver.protocols.AuthenticationProtocolBase;
24 |
25 | public class WinAuthProtocol extends AuthenticationProtocolBase
26 | {
27 | public static final int PROTOCOL_IDENTIFIER = 0x0002;
28 |
29 | protected WinAuthProtocol()
30 | {
31 | }
32 |
33 | protected void log(Level level, String message)
34 | {
35 | session.log(level, String.format("[WinAuth] %s", message));
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Java/src/com/us/openserver/protocols/winauth/WinAuthProtocolCommands.java:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | package com.us.openserver.protocols.winauth;
21 |
22 | public class WinAuthProtocolCommands
23 | {
24 | public static final int AUTHENTICATE = 0x01;
25 | public static final int AUTHENTICATED = 0x02;
26 | public static final int ACCESS_DENIED = 0x03;
27 | public static final int ERROR = 0xFF;
28 | }
29 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Windows/WinAuthProtocolClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("WinAuthProtocolClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Windows/WinAuthProtocolServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("WinAuthProtocolServer")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Windows/WinAuthProtocolShared/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("WinAuthProtocolShared")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015-2016 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Protocols/WinAuth/Windows/WinAuthProtocolShared/WinAuthProtocolCommands.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015-2016 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | namespace US.OpenServer.Protocols.WinAuth
21 | {
22 | ///
23 | /// Enumeration that defines the available commands.
24 | ///
25 | public enum WinAuthProtocolCommands : byte
26 | {
27 | ///
28 | /// Sent by clients to authenticate a user.
29 | ///
30 | AUTHENTICATE = 0x01,
31 |
32 | ///
33 | /// Sent by the server in response to a successful authentication
34 | /// request.
35 | ///
36 | AUTHENTICATED = 0x02,
37 |
38 | ///
39 | /// Sent by the server in response to a failed authentication attempt.
40 | ///
41 | ACCESS_DENIED = 0x03,
42 |
43 | ///
44 | /// Sent by the server when an authentication attempt errors or an invalid or
45 | /// unsupported command is received.
46 | ///
47 | ERROR = 0xFF,
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | /*/build/
3 |
4 | # Local configuration file (sdk path, etc)
5 | local.properties
6 |
7 | # Gradle generated files
8 | .gradle/
9 |
10 | # Signing files
11 | .signing/
12 |
13 | # User-specific configurations
14 | .idea/libraries/
15 | .idea/workspace.xml
16 | .idea/tasks.xml
17 | .idea/.name
18 | .idea/compiler.xml
19 | .idea/copyright/profiles_settings.xml
20 | .idea/encodings.xml
21 | .idea/misc.xml
22 | .idea/modules.xml
23 | .idea/scopes/scope_settings.xml
24 | .idea/vcs.xml
25 | *.iml
26 |
27 | # OS-specific files
28 | .DS_Store
29 | .DS_Store?
30 | ._*
31 | .Spotlight-V100
32 | .Trashes
33 | ehthumbs.db
34 | Thumbs.db
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/.name:
--------------------------------------------------------------------------------
1 | HelloClient
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/libraries/HelloProtocol.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/libraries/KeepAliveProtocol.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/libraries/OpenServerClient.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/libraries/WinAuthProtocol.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/HelloClient.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion "23.0.2"
6 |
7 | dataBinding {
8 | enabled = true
9 | }
10 |
11 | defaultConfig {
12 | applicationId "com.us.openserver.helloclient"
13 | minSdkVersion 21
14 | targetSdkVersion 23
15 | versionCode 0
16 | versionName "1.0"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 | }
26 |
27 | dependencies {
28 | compile fileTree(dir: 'libs', include: ['*.jar'])
29 | compile 'com.android.support:appcompat-v7:23.1.1'
30 | compile 'com.android.support:design:23.1.1'
31 | compile 'com.android.support:recyclerview-v7:23.2.0'
32 | compile 'com.android.support:support-v4:23.1.1'
33 | compile 'com.jakewharton:butterknife:7.0.1'
34 | compile files('libs/OpenServerClient.jar')
35 | compile files('libs/HelloProtocol.jar')
36 | compile files('libs/KeepAliveProtocol.jar')
37 | compile files('libs/WinAuthProtocol.jar')
38 | }
39 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in C:\Android\sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
12 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
27 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/ic_launcher-web.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/java/com/us/openserver/helloclient/MessageViewModel.java:
--------------------------------------------------------------------------------
1 | package com.us.openserver.helloclient;
2 |
3 | import android.databinding.BaseObservable;
4 | import android.databinding.Bindable;
5 |
6 | import com.us.openserver.Level;
7 |
8 | public class MessageViewModel extends BaseObservable
9 | {
10 | @Bindable
11 | public Level level;
12 |
13 | @Bindable
14 | public String message;
15 |
16 | public MessageViewModel(Level level, String message)
17 | {
18 | this.level = level;
19 | this.message = message;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/java/com/us/openserver/helloclient/recyclerview/DividerItemDecoration.java:
--------------------------------------------------------------------------------
1 | package com.us.openserver.helloclient.recyclerview;
2 |
3 | import android.content.Context;
4 | import android.content.res.TypedArray;
5 | import android.graphics.Canvas;
6 | import android.graphics.drawable.Drawable;
7 | import android.support.v4.content.ContextCompat;
8 | import android.support.v7.widget.RecyclerView;
9 | import android.view.View;
10 |
11 | public class DividerItemDecoration extends RecyclerView.ItemDecoration {
12 |
13 | private static final int[] ATTRS = new int[]{android.R.attr.listDivider};
14 |
15 | private Drawable mDivider;
16 |
17 | /**
18 | * Default divider will be used
19 | */
20 | public DividerItemDecoration(Context context) {
21 | final TypedArray styledAttributes = context.obtainStyledAttributes(ATTRS);
22 | mDivider = styledAttributes.getDrawable(0);
23 | styledAttributes.recycle();
24 | }
25 |
26 | /**
27 | * Custom divider will be used
28 | */
29 | public DividerItemDecoration(Context context, int resId) {
30 | mDivider = ContextCompat.getDrawable(context, resId);
31 | }
32 |
33 | @Override
34 | public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
35 | int left = parent.getPaddingLeft();
36 | int right = parent.getWidth() - parent.getPaddingRight();
37 |
38 | int childCount = parent.getChildCount();
39 | for (int i = 0; i < childCount; i++) {
40 | View child = parent.getChildAt(i);
41 |
42 | RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child.getLayoutParams();
43 |
44 | int top = child.getBottom() + params.bottomMargin;
45 | int bottom = top + mDivider.getIntrinsicHeight();
46 |
47 | mDivider.setBounds(left, top, right, bottom);
48 | mDivider.draw(c);
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/java/com/us/openserver/helloclient/recyclerview/adapter/binder/ItemBinder.java:
--------------------------------------------------------------------------------
1 | package com.us.openserver.helloclient.recyclerview.adapter.binder;
2 |
3 | public class ItemBinder
4 | {
5 | protected final int bindingVariable;
6 | protected final int layoutId;
7 |
8 | public ItemBinder(int bindingVariable, int layoutId)
9 | {
10 | this.bindingVariable = bindingVariable;
11 | this.layoutId = layoutId;
12 | }
13 |
14 | public int getLayoutRes(T model)
15 | {
16 | return layoutId;
17 | }
18 |
19 | public int getBindingVariable(T model)
20 | {
21 | return bindingVariable;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/drawable/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/res/drawable/logo.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/layout/row_message.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
13 |
14 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | DotNetOpenServer Test Client
3 | Sign in
4 |
5 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
11 |
12 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.5.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/Android/HelloClient/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/Samples/Android/HelloClient/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/Samples/Java/HelloClient/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Samples/Java/HelloClient/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | HelloClient
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // HelloMacClient
4 | //
5 | // Created by Michael Janulaitis on 7/8/15.
6 | // Copyright (c) 2015 Upper Setting Corporation. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : NSObject
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // HelloMacClient
4 | //
5 | // Created by Michael Janulaitis on 7/8/15.
6 | // Copyright (c) 2015 Upper Setting Corporation. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
18 | // Insert code here to initialize your application
19 | }
20 |
21 | - (void)applicationWillTerminate:(NSNotification *)aNotification {
22 | // Insert code here to tear down your application
23 | }
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "mac",
5 | "size" : "16x16",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "mac",
10 | "size" : "16x16",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "mac",
15 | "size" : "32x32",
16 | "scale" : "1x"
17 | },
18 | {
19 | "idiom" : "mac",
20 | "size" : "32x32",
21 | "scale" : "2x"
22 | },
23 | {
24 | "idiom" : "mac",
25 | "size" : "128x128",
26 | "scale" : "1x"
27 | },
28 | {
29 | "idiom" : "mac",
30 | "size" : "128x128",
31 | "scale" : "2x"
32 | },
33 | {
34 | "idiom" : "mac",
35 | "size" : "256x256",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "mac",
40 | "size" : "256x256",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "mac",
45 | "size" : "512x512",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "mac",
50 | "size" : "512x512",
51 | "scale" : "2x"
52 | }
53 | ],
54 | "info" : {
55 | "version" : 1,
56 | "author" : "xcode"
57 | }
58 | }
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | com.uppersetting.$(PRODUCT_NAME:rfc1034identifier)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSMinimumSystemVersion
26 | $(MACOSX_DEPLOYMENT_TARGET)
27 | NSHumanReadableCopyright
28 | Copyright © 2015 Upper Setting Corporation. All rights reserved.
29 | NSMainStoryboardFile
30 | Main
31 | NSPrincipalClass
32 | NSApplication
33 |
34 |
35 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/ViewController.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "IClientObserver.h"
3 |
4 | @interface ViewController : NSViewController
5 |
6 | @property (weak) IBOutlet NSTextField *txtHost;
7 | @property (weak) IBOutlet NSTextField *txtUserName;
8 | @property (weak) IBOutlet NSSecureTextField *txtPassword;
9 | @property (weak) IBOutlet NSButton *btnConnect;
10 |
11 | @end
12 |
13 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // HelloMacClient
4 | //
5 | // Created by Michael Janulaitis on 7/8/15.
6 | // Copyright (c) 2015 Upper Setting Corporation. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | int main(int argc, const char * argv[]) {
12 | return NSApplicationMain(argc, argv);
13 | }
14 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/AuthenticationProtocolBase.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/AuthenticationProtocolBase.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("AuthenticationProtocolBase_INCLUDE_ALL")
9 | #ifdef AuthenticationProtocolBase_RESTRICT
10 | #define AuthenticationProtocolBase_INCLUDE_ALL 0
11 | #else
12 | #define AuthenticationProtocolBase_INCLUDE_ALL 1
13 | #endif
14 | #undef AuthenticationProtocolBase_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsAuthenticationProtocolBase_) && (AuthenticationProtocolBase_INCLUDE_ALL || defined(ComUsOpenserverProtocolsAuthenticationProtocolBase_INCLUDE))
17 | #define ComUsOpenserverProtocolsAuthenticationProtocolBase_
18 |
19 | #define ProtocolBase_RESTRICT 1
20 | #define ComUsOpenserverProtocolsProtocolBase_INCLUDE 1
21 | #include "ProtocolBase.h"
22 |
23 | @interface ComUsOpenserverProtocolsAuthenticationProtocolBase : ComUsOpenserverProtocolsProtocolBase {
24 | @public
25 | jboolean isAuthenticated_;
26 | NSString *userName_;
27 | id userId_;
28 | }
29 |
30 | #pragma mark Public
31 |
32 | - (instancetype)init;
33 |
34 | - (jboolean)getIsAuthenticated;
35 |
36 | - (id)getUserId;
37 |
38 | - (NSString *)getUserName;
39 |
40 | @end
41 |
42 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsAuthenticationProtocolBase)
43 |
44 | J2OBJC_FIELD_SETTER(ComUsOpenserverProtocolsAuthenticationProtocolBase, userName_, NSString *)
45 | J2OBJC_FIELD_SETTER(ComUsOpenserverProtocolsAuthenticationProtocolBase, userId_, id)
46 |
47 | FOUNDATION_EXPORT void ComUsOpenserverProtocolsAuthenticationProtocolBase_init(ComUsOpenserverProtocolsAuthenticationProtocolBase *self);
48 |
49 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsAuthenticationProtocolBase)
50 |
51 | #endif
52 |
53 | #pragma pop_macro("AuthenticationProtocolBase_INCLUDE_ALL")
54 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/AuthenticationProtocolBase.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/AuthenticationProtocolBase.java
4 | //
5 |
6 | #include "AuthenticationProtocolBase.h"
7 | #include "J2ObjC_source.h"
8 | #include "ProtocolBase.h"
9 |
10 | @implementation ComUsOpenserverProtocolsAuthenticationProtocolBase
11 |
12 | - (jboolean)getIsAuthenticated {
13 | return isAuthenticated_;
14 | }
15 |
16 | - (NSString *)getUserName {
17 | return userName_;
18 | }
19 |
20 | - (id)getUserId {
21 | return userId_;
22 | }
23 |
24 | J2OBJC_IGNORE_DESIGNATED_BEGIN
25 | - (instancetype)init {
26 | ComUsOpenserverProtocolsAuthenticationProtocolBase_init(self);
27 | return self;
28 | }
29 | J2OBJC_IGNORE_DESIGNATED_END
30 |
31 | + (const J2ObjcClassInfo *)__metadata {
32 | static const J2ObjcMethodInfo methods[] = {
33 | { "getIsAuthenticated", NULL, "Z", 0x1, NULL, NULL },
34 | { "getUserName", NULL, "Ljava.lang.String;", 0x1, NULL, NULL },
35 | { "getUserId", NULL, "Ljava.lang.Object;", 0x1, NULL, NULL },
36 | { "init", NULL, NULL, 0x1, NULL, NULL },
37 | };
38 | static const J2ObjcFieldInfo fields[] = {
39 | { "isAuthenticated_", NULL, 0x4, "Z", NULL, NULL, .constantValue.asLong = 0 },
40 | { "userName_", NULL, 0x4, "Ljava.lang.String;", NULL, NULL, .constantValue.asLong = 0 },
41 | { "userId_", NULL, 0x4, "Ljava.lang.Object;", NULL, NULL, .constantValue.asLong = 0 },
42 | };
43 | static const J2ObjcClassInfo _ComUsOpenserverProtocolsAuthenticationProtocolBase = { 2, "AuthenticationProtocolBase", "com.us.openserver.protocols", NULL, 0x401, 4, methods, 3, fields, 0, NULL, 0, NULL, NULL, NULL };
44 | return &_ComUsOpenserverProtocolsAuthenticationProtocolBase;
45 | }
46 |
47 | @end
48 |
49 | void ComUsOpenserverProtocolsAuthenticationProtocolBase_init(ComUsOpenserverProtocolsAuthenticationProtocolBase *self) {
50 | ComUsOpenserverProtocolsProtocolBase_init(self);
51 | }
52 |
53 | J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComUsOpenserverProtocolsAuthenticationProtocolBase)
54 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/ConsoleLogger.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ConsoleLogger.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("ConsoleLogger_INCLUDE_ALL")
9 | #ifdef ConsoleLogger_RESTRICT
10 | #define ConsoleLogger_INCLUDE_ALL 0
11 | #else
12 | #define ConsoleLogger_INCLUDE_ALL 1
13 | #endif
14 | #undef ConsoleLogger_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverConsoleLogger_) && (ConsoleLogger_INCLUDE_ALL || defined(ComUsOpenserverConsoleLogger_INCLUDE))
17 | #define ComUsOpenserverConsoleLogger_
18 |
19 | #define Logger_RESTRICT 1
20 | #define ComUsOpenserverLogger_INCLUDE 1
21 | #include "Logger.h"
22 |
23 | @class ComUsOpenserverLevel;
24 |
25 | @interface ComUsOpenserverConsoleLogger : ComUsOpenserverLogger
26 |
27 | #pragma mark Public
28 |
29 | - (instancetype)init;
30 |
31 | - (void)logWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
32 | withNSString:(NSString *)message;
33 |
34 | @end
35 |
36 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverConsoleLogger)
37 |
38 | FOUNDATION_EXPORT void ComUsOpenserverConsoleLogger_init(ComUsOpenserverConsoleLogger *self);
39 |
40 | FOUNDATION_EXPORT ComUsOpenserverConsoleLogger *new_ComUsOpenserverConsoleLogger_init() NS_RETURNS_RETAINED;
41 |
42 | FOUNDATION_EXPORT ComUsOpenserverConsoleLogger *create_ComUsOpenserverConsoleLogger_init();
43 |
44 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverConsoleLogger)
45 |
46 | #endif
47 |
48 | #pragma pop_macro("ConsoleLogger_INCLUDE_ALL")
49 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/HelloProtocol.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/HelloProtocol.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("HelloProtocol_INCLUDE_ALL")
9 | #ifdef HelloProtocol_RESTRICT
10 | #define HelloProtocol_INCLUDE_ALL 0
11 | #else
12 | #define HelloProtocol_INCLUDE_ALL 1
13 | #endif
14 | #undef HelloProtocol_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsHelloHelloProtocol_) && (HelloProtocol_INCLUDE_ALL || defined(ComUsOpenserverProtocolsHelloHelloProtocol_INCLUDE))
17 | #define ComUsOpenserverProtocolsHelloHelloProtocol_
18 |
19 | #define ProtocolBase_RESTRICT 1
20 | #define ComUsOpenserverProtocolsProtocolBase_INCLUDE 1
21 | #include "ProtocolBase.h"
22 |
23 | @class ComUsOpenserverLevel;
24 |
25 | @interface ComUsOpenserverProtocolsHelloHelloProtocol : ComUsOpenserverProtocolsProtocolBase
26 |
27 | #pragma mark Protected
28 |
29 | - (instancetype)init;
30 |
31 | - (void)logWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
32 | withNSString:(NSString *)message;
33 |
34 | @end
35 |
36 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsHelloHelloProtocol)
37 |
38 | inline jint ComUsOpenserverProtocolsHelloHelloProtocol_get_PROTOCOL_IDENTIFIER();
39 | #define ComUsOpenserverProtocolsHelloHelloProtocol_PROTOCOL_IDENTIFIER 10
40 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverProtocolsHelloHelloProtocol, PROTOCOL_IDENTIFIER, jint)
41 |
42 | FOUNDATION_EXPORT void ComUsOpenserverProtocolsHelloHelloProtocol_init(ComUsOpenserverProtocolsHelloHelloProtocol *self);
43 |
44 | FOUNDATION_EXPORT ComUsOpenserverProtocolsHelloHelloProtocol *new_ComUsOpenserverProtocolsHelloHelloProtocol_init() NS_RETURNS_RETAINED;
45 |
46 | FOUNDATION_EXPORT ComUsOpenserverProtocolsHelloHelloProtocol *create_ComUsOpenserverProtocolsHelloHelloProtocol_init();
47 |
48 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsHelloHelloProtocol)
49 |
50 | #endif
51 |
52 | #pragma pop_macro("HelloProtocol_INCLUDE_ALL")
53 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/IClientObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/IClientObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("IClientObserver_INCLUDE_ALL")
9 | #ifdef IClientObserver_RESTRICT
10 | #define IClientObserver_INCLUDE_ALL 0
11 | #else
12 | #define IClientObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef IClientObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverIClientObserver_) && (IClientObserver_INCLUDE_ALL || defined(ComUsOpenserverIClientObserver_INCLUDE))
17 | #define ComUsOpenserverIClientObserver_
18 |
19 | @class JavaLangException;
20 |
21 | @protocol ComUsOpenserverIClientObserver < NSObject, JavaObject >
22 |
23 | - (void)onConnectionLostWithJavaLangException:(JavaLangException *)ex;
24 |
25 | @end
26 |
27 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverIClientObserver)
28 |
29 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverIClientObserver)
30 |
31 | #endif
32 |
33 | #pragma pop_macro("IClientObserver_INCLUDE_ALL")
34 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/IClientObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/IClientObserver.java
4 | //
5 |
6 | #include "IClientObserver.h"
7 | #include "J2ObjC_source.h"
8 | #include "java/lang/Exception.h"
9 |
10 | @interface ComUsOpenserverIClientObserver : NSObject
11 |
12 | @end
13 |
14 | @implementation ComUsOpenserverIClientObserver
15 |
16 | + (const J2ObjcClassInfo *)__metadata {
17 | static const J2ObjcMethodInfo methods[] = {
18 | { "onConnectionLostWithJavaLangException:", "onConnectionLost", "V", 0x401, NULL, NULL },
19 | };
20 | static const J2ObjcClassInfo _ComUsOpenserverIClientObserver = { 2, "IClientObserver", "com.us.openserver", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
21 | return &_ComUsOpenserverIClientObserver;
22 | }
23 |
24 | @end
25 |
26 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverIClientObserver)
27 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/IHelloProtocolObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/IHelloProtocolObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("IHelloProtocolObserver_INCLUDE_ALL")
9 | #ifdef IHelloProtocolObserver_RESTRICT
10 | #define IHelloProtocolObserver_INCLUDE_ALL 0
11 | #else
12 | #define IHelloProtocolObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef IHelloProtocolObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsHelloIHelloProtocolObserver_) && (IHelloProtocolObserver_INCLUDE_ALL || defined(ComUsOpenserverProtocolsHelloIHelloProtocolObserver_INCLUDE))
17 | #define ComUsOpenserverProtocolsHelloIHelloProtocolObserver_
18 |
19 | @protocol ComUsOpenserverProtocolsHelloIHelloProtocolObserver < NSObject, JavaObject >
20 |
21 | - (void)onHelloCompleteWithNSString:(NSString *)serverResponse;
22 |
23 | @end
24 |
25 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsHelloIHelloProtocolObserver)
26 |
27 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsHelloIHelloProtocolObserver)
28 |
29 | #endif
30 |
31 | #pragma pop_macro("IHelloProtocolObserver_INCLUDE_ALL")
32 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/IHelloProtocolObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/IHelloProtocolObserver.java
4 | //
5 |
6 | #include "IHelloProtocolObserver.h"
7 | #include "J2ObjC_source.h"
8 |
9 | @interface ComUsOpenserverProtocolsHelloIHelloProtocolObserver : NSObject
10 |
11 | @end
12 |
13 | @implementation ComUsOpenserverProtocolsHelloIHelloProtocolObserver
14 |
15 | + (const J2ObjcClassInfo *)__metadata {
16 | static const J2ObjcMethodInfo methods[] = {
17 | { "onHelloCompleteWithNSString:", "onHelloComplete", "V", 0x401, NULL, NULL },
18 | };
19 | static const J2ObjcClassInfo _ComUsOpenserverProtocolsHelloIHelloProtocolObserver = { 2, "IHelloProtocolObserver", "com.us.openserver.protocols.hello", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
20 | return &_ComUsOpenserverProtocolsHelloIHelloProtocolObserver;
21 | }
22 |
23 | @end
24 |
25 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverProtocolsHelloIHelloProtocolObserver)
26 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/ILoggerObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ILoggerObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("ILoggerObserver_INCLUDE_ALL")
9 | #ifdef ILoggerObserver_RESTRICT
10 | #define ILoggerObserver_INCLUDE_ALL 0
11 | #else
12 | #define ILoggerObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef ILoggerObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverILoggerObserver_) && (ILoggerObserver_INCLUDE_ALL || defined(ComUsOpenserverILoggerObserver_INCLUDE))
17 | #define ComUsOpenserverILoggerObserver_
18 |
19 | @class ComUsOpenserverLevel;
20 |
21 | @protocol ComUsOpenserverILoggerObserver < NSObject, JavaObject >
22 |
23 | - (void)onLogMessageWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
24 | withNSString:(NSString *)message;
25 |
26 | @end
27 |
28 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverILoggerObserver)
29 |
30 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverILoggerObserver)
31 |
32 | #endif
33 |
34 | #pragma pop_macro("ILoggerObserver_INCLUDE_ALL")
35 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/ILoggerObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ILoggerObserver.java
4 | //
5 |
6 | #include "ILoggerObserver.h"
7 | #include "J2ObjC_source.h"
8 | #include "Level.h"
9 |
10 | @interface ComUsOpenserverILoggerObserver : NSObject
11 |
12 | @end
13 |
14 | @implementation ComUsOpenserverILoggerObserver
15 |
16 | + (const J2ObjcClassInfo *)__metadata {
17 | static const J2ObjcMethodInfo methods[] = {
18 | { "onLogMessageWithComUsOpenserverLevel:withNSString:", "onLogMessage", "V", 0x401, NULL, NULL },
19 | };
20 | static const J2ObjcClassInfo _ComUsOpenserverILoggerObserver = { 2, "ILoggerObserver", "com.us.openserver", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
21 | return &_ComUsOpenserverILoggerObserver;
22 | }
23 |
24 | @end
25 |
26 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverILoggerObserver)
27 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/PacketReadTypes.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/PacketReadTypes.java
4 | //
5 |
6 | #include "J2ObjC_source.h"
7 | #include "PacketReadTypes.h"
8 |
9 | @implementation ComUsOpenserverSessionPacketReadTypes
10 |
11 | J2OBJC_IGNORE_DESIGNATED_BEGIN
12 | - (instancetype)init {
13 | ComUsOpenserverSessionPacketReadTypes_init(self);
14 | return self;
15 | }
16 | J2OBJC_IGNORE_DESIGNATED_END
17 |
18 | + (const J2ObjcClassInfo *)__metadata {
19 | static const J2ObjcMethodInfo methods[] = {
20 | { "init", NULL, NULL, 0x1, NULL, NULL },
21 | };
22 | static const J2ObjcFieldInfo fields[] = {
23 | { "Header", "Header", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_Header },
24 | { "HeaderComplete", "HeaderComplete", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_HeaderComplete },
25 | { "Payload", "Payload", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_Payload },
26 | };
27 | static const J2ObjcClassInfo _ComUsOpenserverSessionPacketReadTypes = { 2, "PacketReadTypes", "com.us.openserver.session", NULL, 0x1, 1, methods, 3, fields, 0, NULL, 0, NULL, NULL, NULL };
28 | return &_ComUsOpenserverSessionPacketReadTypes;
29 | }
30 |
31 | @end
32 |
33 | void ComUsOpenserverSessionPacketReadTypes_init(ComUsOpenserverSessionPacketReadTypes *self) {
34 | NSObject_init(self);
35 | }
36 |
37 | ComUsOpenserverSessionPacketReadTypes *new_ComUsOpenserverSessionPacketReadTypes_init() {
38 | ComUsOpenserverSessionPacketReadTypes *self = [ComUsOpenserverSessionPacketReadTypes alloc];
39 | ComUsOpenserverSessionPacketReadTypes_init(self);
40 | return self;
41 | }
42 |
43 | ComUsOpenserverSessionPacketReadTypes *create_ComUsOpenserverSessionPacketReadTypes_init() {
44 | return new_ComUsOpenserverSessionPacketReadTypes_init();
45 | }
46 |
47 | J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComUsOpenserverSessionPacketReadTypes)
48 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/SessionCloser.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/SessionCloser.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("SessionCloser_INCLUDE_ALL")
9 | #ifdef SessionCloser_RESTRICT
10 | #define SessionCloser_INCLUDE_ALL 0
11 | #else
12 | #define SessionCloser_INCLUDE_ALL 1
13 | #endif
14 | #undef SessionCloser_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionSessionCloser_) && (SessionCloser_INCLUDE_ALL || defined(ComUsOpenserverSessionSessionCloser_INCLUDE))
17 | #define ComUsOpenserverSessionSessionCloser_
18 |
19 | #define JavaLangRunnable_RESTRICT 1
20 | #define JavaLangRunnable_INCLUDE 1
21 | #include "java/lang/Runnable.h"
22 |
23 | @class ComUsOpenserverSessionSession;
24 |
25 | @interface ComUsOpenserverSessionSessionCloser : NSObject < JavaLangRunnable >
26 |
27 | #pragma mark Public
28 |
29 | - (instancetype)initWithComUsOpenserverSessionSession:(ComUsOpenserverSessionSession *)session;
30 |
31 | - (void)close;
32 |
33 | - (void)closeWithInt:(jint)protocolId;
34 |
35 | - (void)closeBackgroundThread;
36 |
37 | - (void)closeBackgroundThreadWithInt:(jint)protocolId;
38 |
39 | - (void)run;
40 |
41 | @end
42 |
43 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionSessionCloser)
44 |
45 | FOUNDATION_EXPORT void ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSessionCloser *self, ComUsOpenserverSessionSession *session);
46 |
47 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionCloser *new_ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSession *session) NS_RETURNS_RETAINED;
48 |
49 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionCloser *create_ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSession *session);
50 |
51 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionSessionCloser)
52 |
53 | #endif
54 |
55 | #pragma pop_macro("SessionCloser_INCLUDE_ALL")
56 |
--------------------------------------------------------------------------------
/Samples/Mac/HelloMacClient/HelloMacClient/src/SessionOpener.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/SessionOpener.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("SessionOpener_INCLUDE_ALL")
9 | #ifdef SessionOpener_RESTRICT
10 | #define SessionOpener_INCLUDE_ALL 0
11 | #else
12 | #define SessionOpener_INCLUDE_ALL 1
13 | #endif
14 | #undef SessionOpener_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionSessionOpener_) && (SessionOpener_INCLUDE_ALL || defined(ComUsOpenserverSessionSessionOpener_INCLUDE))
17 | #define ComUsOpenserverSessionSessionOpener_
18 |
19 | #define JavaLangRunnable_RESTRICT 1
20 | #define JavaLangRunnable_INCLUDE 1
21 | #include "java/lang/Runnable.h"
22 |
23 | @class ComUsOpenserverClient;
24 | @class ComUsOpenserverSessionSession;
25 |
26 | @interface ComUsOpenserverSessionSessionOpener : NSObject < JavaLangRunnable >
27 |
28 | #pragma mark Public
29 |
30 | - (instancetype)initWithComUsOpenserverClient:(ComUsOpenserverClient *)client;
31 |
32 | - (ComUsOpenserverSessionSession *)connect;
33 |
34 | - (ComUsOpenserverSessionSession *)connectBackgroundThread;
35 |
36 | - (void)run;
37 |
38 | @end
39 |
40 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionSessionOpener)
41 |
42 | FOUNDATION_EXPORT void ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverSessionSessionOpener *self, ComUsOpenserverClient *client);
43 |
44 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionOpener *new_ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverClient *client) NS_RETURNS_RETAINED;
45 |
46 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionOpener *create_ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverClient *client);
47 |
48 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionSessionOpener)
49 |
50 | #endif
51 |
52 | #pragma pop_macro("SessionOpener_INCLUDE_ALL")
53 |
--------------------------------------------------------------------------------
/Samples/Windows/HelloClient/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Samples/Windows/HelloClient/HelloClient.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloClient", "HelloClient.csproj", "{CC47DA7F-EFFF-434F-B208-8FAEBDF48A87}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {CC47DA7F-EFFF-434F-B208-8FAEBDF48A87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {CC47DA7F-EFFF-434F-B208-8FAEBDF48A87}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {CC47DA7F-EFFF-434F-B208-8FAEBDF48A87}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {CC47DA7F-EFFF-434F-B208-8FAEBDF48A87}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Samples/Windows/HelloClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("HelloClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Samples/Windows/HelloServer/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Samples/Windows/HelloServer/HelloServer.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloServer", "HelloServer.csproj", "{6442BB06-B604-414C-8C4D-4D1C3663354A}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {6442BB06-B604-414C-8C4D-4D1C3663354A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {6442BB06-B604-414C-8C4D-4D1C3663354A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {6442BB06-B604-414C-8C4D-4D1C3663354A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {6442BB06-B604-414C-8C4D-4D1C3663354A}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/Samples/Windows/HelloServer/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("HelloServer")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Assets/Logo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/WindowsMobile/HelloMobileClient/Assets/Logo.scale-240.png
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Assets/SmallLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/WindowsMobile/HelloMobileClient/Assets/SmallLogo.scale-240.png
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Assets/SplashScreen.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/WindowsMobile/HelloMobileClient/Assets/SplashScreen.scale-240.png
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Assets/Square71x71Logo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/WindowsMobile/HelloMobileClient/Assets/Square71x71Logo.scale-240.png
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Assets/StoreLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/WindowsMobile/HelloMobileClient/Assets/StoreLogo.scale-240.png
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Assets/WideLogo.scale-240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UpperSetting/DotNetOpenServerSDK/cd9c2821374506a95c16aecc2edb1073dd592912/Samples/WindowsMobile/HelloMobileClient/Assets/WideLogo.scale-240.png
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
10 |
11 | HelloMobileClient
12 | Michael
13 | Assets\StoreLogo.png
14 |
15 |
16 |
17 | 6.3.1
18 | 6.3.1
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Samples/WindowsMobile/HelloMobileClient/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright 2015 Upper Setting Corporation
3 |
4 | This file is part of DotNetOpenServer SDK.
5 |
6 | DotNetOpenServer SDK is free software: you can redistribute it and/or modify it
7 | under the terms of the GNU General Public License as published by the Free
8 | Software Foundation, either version 3 of the License, or (at your option) any
9 | later version.
10 |
11 | DotNetOpenServer SDK is distributed in the hope that it will be useful, but
12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 | details.
15 |
16 | You should have received a copy of the GNU General Public License along with
17 | DotNetOpenServer SDK. If not, see .
18 | */
19 |
20 | using System.Reflection;
21 | using System.Resources;
22 |
23 | [assembly: AssemblyTitle("HelloMobileClient")]
24 | [assembly: AssemblyDescription("")]
25 | [assembly: AssemblyCompany("Upper Setting Corporation")]
26 | [assembly: AssemblyProduct("DotNetOpenServer SDK")]
27 | [assembly: AssemblyCopyright("Copyright © 2015 Upper Setting Corporation")]
28 | [assembly: NeutralResourcesLanguage("en")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // HelloClient
4 | //
5 | // Created by Michael Janulaitis on 6/20/15.
6 | // Copyright (c) 2015 Upper Setting Corporation. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.uppersetting.openserver.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/ViewController.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "IClientObserver.h"
3 |
4 | @interface ViewController : UIViewController
5 |
6 | @property (weak, nonatomic) IBOutlet UITextField *txtHost;
7 | @property (weak, nonatomic) IBOutlet UITextField *txtUserName;
8 | @property (weak, nonatomic) IBOutlet UITextField *txtPassword;
9 | @property (weak, nonatomic) IBOutlet UIButton *btnConnect;
10 |
11 | @end
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // HelloClient
4 | //
5 | // Created by Michael Janulaitis on 6/20/15.
6 | // Copyright (c) 2015 Upper Setting Corporation. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/AuthenticationProtocolBase.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/AuthenticationProtocolBase.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("AuthenticationProtocolBase_INCLUDE_ALL")
9 | #ifdef AuthenticationProtocolBase_RESTRICT
10 | #define AuthenticationProtocolBase_INCLUDE_ALL 0
11 | #else
12 | #define AuthenticationProtocolBase_INCLUDE_ALL 1
13 | #endif
14 | #undef AuthenticationProtocolBase_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsAuthenticationProtocolBase_) && (AuthenticationProtocolBase_INCLUDE_ALL || defined(ComUsOpenserverProtocolsAuthenticationProtocolBase_INCLUDE))
17 | #define ComUsOpenserverProtocolsAuthenticationProtocolBase_
18 |
19 | #define ProtocolBase_RESTRICT 1
20 | #define ComUsOpenserverProtocolsProtocolBase_INCLUDE 1
21 | #include "ProtocolBase.h"
22 |
23 | @interface ComUsOpenserverProtocolsAuthenticationProtocolBase : ComUsOpenserverProtocolsProtocolBase {
24 | @public
25 | jboolean isAuthenticated_;
26 | NSString *userName_;
27 | id userId_;
28 | }
29 |
30 | #pragma mark Public
31 |
32 | - (instancetype)init;
33 |
34 | - (jboolean)getIsAuthenticated;
35 |
36 | - (id)getUserId;
37 |
38 | - (NSString *)getUserName;
39 |
40 | @end
41 |
42 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsAuthenticationProtocolBase)
43 |
44 | J2OBJC_FIELD_SETTER(ComUsOpenserverProtocolsAuthenticationProtocolBase, userName_, NSString *)
45 | J2OBJC_FIELD_SETTER(ComUsOpenserverProtocolsAuthenticationProtocolBase, userId_, id)
46 |
47 | FOUNDATION_EXPORT void ComUsOpenserverProtocolsAuthenticationProtocolBase_init(ComUsOpenserverProtocolsAuthenticationProtocolBase *self);
48 |
49 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsAuthenticationProtocolBase)
50 |
51 | #endif
52 |
53 | #pragma pop_macro("AuthenticationProtocolBase_INCLUDE_ALL")
54 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/AuthenticationProtocolBase.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/AuthenticationProtocolBase.java
4 | //
5 |
6 | #include "AuthenticationProtocolBase.h"
7 | #include "J2ObjC_source.h"
8 | #include "ProtocolBase.h"
9 |
10 | @implementation ComUsOpenserverProtocolsAuthenticationProtocolBase
11 |
12 | - (jboolean)getIsAuthenticated {
13 | return isAuthenticated_;
14 | }
15 |
16 | - (NSString *)getUserName {
17 | return userName_;
18 | }
19 |
20 | - (id)getUserId {
21 | return userId_;
22 | }
23 |
24 | J2OBJC_IGNORE_DESIGNATED_BEGIN
25 | - (instancetype)init {
26 | ComUsOpenserverProtocolsAuthenticationProtocolBase_init(self);
27 | return self;
28 | }
29 | J2OBJC_IGNORE_DESIGNATED_END
30 |
31 | + (const J2ObjcClassInfo *)__metadata {
32 | static const J2ObjcMethodInfo methods[] = {
33 | { "getIsAuthenticated", NULL, "Z", 0x1, NULL, NULL },
34 | { "getUserName", NULL, "Ljava.lang.String;", 0x1, NULL, NULL },
35 | { "getUserId", NULL, "Ljava.lang.Object;", 0x1, NULL, NULL },
36 | { "init", NULL, NULL, 0x1, NULL, NULL },
37 | };
38 | static const J2ObjcFieldInfo fields[] = {
39 | { "isAuthenticated_", NULL, 0x4, "Z", NULL, NULL, .constantValue.asLong = 0 },
40 | { "userName_", NULL, 0x4, "Ljava.lang.String;", NULL, NULL, .constantValue.asLong = 0 },
41 | { "userId_", NULL, 0x4, "Ljava.lang.Object;", NULL, NULL, .constantValue.asLong = 0 },
42 | };
43 | static const J2ObjcClassInfo _ComUsOpenserverProtocolsAuthenticationProtocolBase = { 2, "AuthenticationProtocolBase", "com.us.openserver.protocols", NULL, 0x401, 4, methods, 3, fields, 0, NULL, 0, NULL, NULL, NULL };
44 | return &_ComUsOpenserverProtocolsAuthenticationProtocolBase;
45 | }
46 |
47 | @end
48 |
49 | void ComUsOpenserverProtocolsAuthenticationProtocolBase_init(ComUsOpenserverProtocolsAuthenticationProtocolBase *self) {
50 | ComUsOpenserverProtocolsProtocolBase_init(self);
51 | }
52 |
53 | J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComUsOpenserverProtocolsAuthenticationProtocolBase)
54 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/ConsoleLogger.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ConsoleLogger.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("ConsoleLogger_INCLUDE_ALL")
9 | #ifdef ConsoleLogger_RESTRICT
10 | #define ConsoleLogger_INCLUDE_ALL 0
11 | #else
12 | #define ConsoleLogger_INCLUDE_ALL 1
13 | #endif
14 | #undef ConsoleLogger_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverConsoleLogger_) && (ConsoleLogger_INCLUDE_ALL || defined(ComUsOpenserverConsoleLogger_INCLUDE))
17 | #define ComUsOpenserverConsoleLogger_
18 |
19 | #define Logger_RESTRICT 1
20 | #define ComUsOpenserverLogger_INCLUDE 1
21 | #include "Logger.h"
22 |
23 | @class ComUsOpenserverLevel;
24 |
25 | @interface ComUsOpenserverConsoleLogger : ComUsOpenserverLogger
26 |
27 | #pragma mark Public
28 |
29 | - (instancetype)init;
30 |
31 | - (void)logWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
32 | withNSString:(NSString *)message;
33 |
34 | @end
35 |
36 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverConsoleLogger)
37 |
38 | FOUNDATION_EXPORT void ComUsOpenserverConsoleLogger_init(ComUsOpenserverConsoleLogger *self);
39 |
40 | FOUNDATION_EXPORT ComUsOpenserverConsoleLogger *new_ComUsOpenserverConsoleLogger_init() NS_RETURNS_RETAINED;
41 |
42 | FOUNDATION_EXPORT ComUsOpenserverConsoleLogger *create_ComUsOpenserverConsoleLogger_init();
43 |
44 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverConsoleLogger)
45 |
46 | #endif
47 |
48 | #pragma pop_macro("ConsoleLogger_INCLUDE_ALL")
49 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/HelloProtocol.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/HelloProtocol.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("HelloProtocol_INCLUDE_ALL")
9 | #ifdef HelloProtocol_RESTRICT
10 | #define HelloProtocol_INCLUDE_ALL 0
11 | #else
12 | #define HelloProtocol_INCLUDE_ALL 1
13 | #endif
14 | #undef HelloProtocol_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsHelloHelloProtocol_) && (HelloProtocol_INCLUDE_ALL || defined(ComUsOpenserverProtocolsHelloHelloProtocol_INCLUDE))
17 | #define ComUsOpenserverProtocolsHelloHelloProtocol_
18 |
19 | #define ProtocolBase_RESTRICT 1
20 | #define ComUsOpenserverProtocolsProtocolBase_INCLUDE 1
21 | #include "ProtocolBase.h"
22 |
23 | @class ComUsOpenserverLevel;
24 |
25 | @interface ComUsOpenserverProtocolsHelloHelloProtocol : ComUsOpenserverProtocolsProtocolBase
26 |
27 | #pragma mark Protected
28 |
29 | - (instancetype)init;
30 |
31 | - (void)logWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
32 | withNSString:(NSString *)message;
33 |
34 | @end
35 |
36 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsHelloHelloProtocol)
37 |
38 | inline jint ComUsOpenserverProtocolsHelloHelloProtocol_get_PROTOCOL_IDENTIFIER();
39 | #define ComUsOpenserverProtocolsHelloHelloProtocol_PROTOCOL_IDENTIFIER 10
40 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverProtocolsHelloHelloProtocol, PROTOCOL_IDENTIFIER, jint)
41 |
42 | FOUNDATION_EXPORT void ComUsOpenserverProtocolsHelloHelloProtocol_init(ComUsOpenserverProtocolsHelloHelloProtocol *self);
43 |
44 | FOUNDATION_EXPORT ComUsOpenserverProtocolsHelloHelloProtocol *new_ComUsOpenserverProtocolsHelloHelloProtocol_init() NS_RETURNS_RETAINED;
45 |
46 | FOUNDATION_EXPORT ComUsOpenserverProtocolsHelloHelloProtocol *create_ComUsOpenserverProtocolsHelloHelloProtocol_init();
47 |
48 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsHelloHelloProtocol)
49 |
50 | #endif
51 |
52 | #pragma pop_macro("HelloProtocol_INCLUDE_ALL")
53 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/IClientObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/IClientObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("IClientObserver_INCLUDE_ALL")
9 | #ifdef IClientObserver_RESTRICT
10 | #define IClientObserver_INCLUDE_ALL 0
11 | #else
12 | #define IClientObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef IClientObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverIClientObserver_) && (IClientObserver_INCLUDE_ALL || defined(ComUsOpenserverIClientObserver_INCLUDE))
17 | #define ComUsOpenserverIClientObserver_
18 |
19 | @class JavaLangException;
20 |
21 | @protocol ComUsOpenserverIClientObserver < NSObject, JavaObject >
22 |
23 | - (void)onConnectionLostWithJavaLangException:(JavaLangException *)ex;
24 |
25 | @end
26 |
27 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverIClientObserver)
28 |
29 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverIClientObserver)
30 |
31 | #endif
32 |
33 | #pragma pop_macro("IClientObserver_INCLUDE_ALL")
34 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/IClientObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/IClientObserver.java
4 | //
5 |
6 | #include "IClientObserver.h"
7 | #include "J2ObjC_source.h"
8 | #include "java/lang/Exception.h"
9 |
10 | @interface ComUsOpenserverIClientObserver : NSObject
11 |
12 | @end
13 |
14 | @implementation ComUsOpenserverIClientObserver
15 |
16 | + (const J2ObjcClassInfo *)__metadata {
17 | static const J2ObjcMethodInfo methods[] = {
18 | { "onConnectionLostWithJavaLangException:", "onConnectionLost", "V", 0x401, NULL, NULL },
19 | };
20 | static const J2ObjcClassInfo _ComUsOpenserverIClientObserver = { 2, "IClientObserver", "com.us.openserver", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
21 | return &_ComUsOpenserverIClientObserver;
22 | }
23 |
24 | @end
25 |
26 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverIClientObserver)
27 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/IHelloProtocolObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/IHelloProtocolObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("IHelloProtocolObserver_INCLUDE_ALL")
9 | #ifdef IHelloProtocolObserver_RESTRICT
10 | #define IHelloProtocolObserver_INCLUDE_ALL 0
11 | #else
12 | #define IHelloProtocolObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef IHelloProtocolObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverProtocolsHelloIHelloProtocolObserver_) && (IHelloProtocolObserver_INCLUDE_ALL || defined(ComUsOpenserverProtocolsHelloIHelloProtocolObserver_INCLUDE))
17 | #define ComUsOpenserverProtocolsHelloIHelloProtocolObserver_
18 |
19 | @protocol ComUsOpenserverProtocolsHelloIHelloProtocolObserver < NSObject, JavaObject >
20 |
21 | - (void)onHelloCompleteWithNSString:(NSString *)serverResponse;
22 |
23 | @end
24 |
25 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverProtocolsHelloIHelloProtocolObserver)
26 |
27 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverProtocolsHelloIHelloProtocolObserver)
28 |
29 | #endif
30 |
31 | #pragma pop_macro("IHelloProtocolObserver_INCLUDE_ALL")
32 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/IHelloProtocolObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/protocols/hello/IHelloProtocolObserver.java
4 | //
5 |
6 | #include "IHelloProtocolObserver.h"
7 | #include "J2ObjC_source.h"
8 |
9 | @interface ComUsOpenserverProtocolsHelloIHelloProtocolObserver : NSObject
10 |
11 | @end
12 |
13 | @implementation ComUsOpenserverProtocolsHelloIHelloProtocolObserver
14 |
15 | + (const J2ObjcClassInfo *)__metadata {
16 | static const J2ObjcMethodInfo methods[] = {
17 | { "onHelloCompleteWithNSString:", "onHelloComplete", "V", 0x401, NULL, NULL },
18 | };
19 | static const J2ObjcClassInfo _ComUsOpenserverProtocolsHelloIHelloProtocolObserver = { 2, "IHelloProtocolObserver", "com.us.openserver.protocols.hello", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
20 | return &_ComUsOpenserverProtocolsHelloIHelloProtocolObserver;
21 | }
22 |
23 | @end
24 |
25 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverProtocolsHelloIHelloProtocolObserver)
26 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/ILoggerObserver.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ILoggerObserver.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("ILoggerObserver_INCLUDE_ALL")
9 | #ifdef ILoggerObserver_RESTRICT
10 | #define ILoggerObserver_INCLUDE_ALL 0
11 | #else
12 | #define ILoggerObserver_INCLUDE_ALL 1
13 | #endif
14 | #undef ILoggerObserver_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverILoggerObserver_) && (ILoggerObserver_INCLUDE_ALL || defined(ComUsOpenserverILoggerObserver_INCLUDE))
17 | #define ComUsOpenserverILoggerObserver_
18 |
19 | @class ComUsOpenserverLevel;
20 |
21 | @protocol ComUsOpenserverILoggerObserver < NSObject, JavaObject >
22 |
23 | - (void)onLogMessageWithComUsOpenserverLevel:(ComUsOpenserverLevel *)level
24 | withNSString:(NSString *)message;
25 |
26 | @end
27 |
28 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverILoggerObserver)
29 |
30 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverILoggerObserver)
31 |
32 | #endif
33 |
34 | #pragma pop_macro("ILoggerObserver_INCLUDE_ALL")
35 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/ILoggerObserver.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/ILoggerObserver.java
4 | //
5 |
6 | #include "ILoggerObserver.h"
7 | #include "J2ObjC_source.h"
8 | #include "Level.h"
9 |
10 | @interface ComUsOpenserverILoggerObserver : NSObject
11 |
12 | @end
13 |
14 | @implementation ComUsOpenserverILoggerObserver
15 |
16 | + (const J2ObjcClassInfo *)__metadata {
17 | static const J2ObjcMethodInfo methods[] = {
18 | { "onLogMessageWithComUsOpenserverLevel:withNSString:", "onLogMessage", "V", 0x401, NULL, NULL },
19 | };
20 | static const J2ObjcClassInfo _ComUsOpenserverILoggerObserver = { 2, "ILoggerObserver", "com.us.openserver", NULL, 0x609, 1, methods, 0, NULL, 0, NULL, 0, NULL, NULL, NULL };
21 | return &_ComUsOpenserverILoggerObserver;
22 | }
23 |
24 | @end
25 |
26 | J2OBJC_INTERFACE_TYPE_LITERAL_SOURCE(ComUsOpenserverILoggerObserver)
27 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/PacketReadTypes.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/PacketReadTypes.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("PacketReadTypes_INCLUDE_ALL")
9 | #ifdef PacketReadTypes_RESTRICT
10 | #define PacketReadTypes_INCLUDE_ALL 0
11 | #else
12 | #define PacketReadTypes_INCLUDE_ALL 1
13 | #endif
14 | #undef PacketReadTypes_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionPacketReadTypes_) && (PacketReadTypes_INCLUDE_ALL || defined(ComUsOpenserverSessionPacketReadTypes_INCLUDE))
17 | #define ComUsOpenserverSessionPacketReadTypes_
18 |
19 | @interface ComUsOpenserverSessionPacketReadTypes : NSObject
20 |
21 | #pragma mark Public
22 |
23 | - (instancetype)init;
24 |
25 | @end
26 |
27 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionPacketReadTypes)
28 |
29 | inline jbyte ComUsOpenserverSessionPacketReadTypes_get_Header();
30 | #define ComUsOpenserverSessionPacketReadTypes_Header 0
31 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverSessionPacketReadTypes, Header, jbyte)
32 |
33 | inline jbyte ComUsOpenserverSessionPacketReadTypes_get_HeaderComplete();
34 | #define ComUsOpenserverSessionPacketReadTypes_HeaderComplete 1
35 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverSessionPacketReadTypes, HeaderComplete, jbyte)
36 |
37 | inline jbyte ComUsOpenserverSessionPacketReadTypes_get_Payload();
38 | #define ComUsOpenserverSessionPacketReadTypes_Payload 2
39 | J2OBJC_STATIC_FIELD_CONSTANT(ComUsOpenserverSessionPacketReadTypes, Payload, jbyte)
40 |
41 | FOUNDATION_EXPORT void ComUsOpenserverSessionPacketReadTypes_init(ComUsOpenserverSessionPacketReadTypes *self);
42 |
43 | FOUNDATION_EXPORT ComUsOpenserverSessionPacketReadTypes *new_ComUsOpenserverSessionPacketReadTypes_init() NS_RETURNS_RETAINED;
44 |
45 | FOUNDATION_EXPORT ComUsOpenserverSessionPacketReadTypes *create_ComUsOpenserverSessionPacketReadTypes_init();
46 |
47 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionPacketReadTypes)
48 |
49 | #endif
50 |
51 | #pragma pop_macro("PacketReadTypes_INCLUDE_ALL")
52 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/PacketReadTypes.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/PacketReadTypes.java
4 | //
5 |
6 | #include "J2ObjC_source.h"
7 | #include "PacketReadTypes.h"
8 |
9 | @implementation ComUsOpenserverSessionPacketReadTypes
10 |
11 | J2OBJC_IGNORE_DESIGNATED_BEGIN
12 | - (instancetype)init {
13 | ComUsOpenserverSessionPacketReadTypes_init(self);
14 | return self;
15 | }
16 | J2OBJC_IGNORE_DESIGNATED_END
17 |
18 | + (const J2ObjcClassInfo *)__metadata {
19 | static const J2ObjcMethodInfo methods[] = {
20 | { "init", NULL, NULL, 0x1, NULL, NULL },
21 | };
22 | static const J2ObjcFieldInfo fields[] = {
23 | { "Header", "Header", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_Header },
24 | { "HeaderComplete", "HeaderComplete", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_HeaderComplete },
25 | { "Payload", "Payload", 0x19, "B", NULL, NULL, .constantValue.asChar = ComUsOpenserverSessionPacketReadTypes_Payload },
26 | };
27 | static const J2ObjcClassInfo _ComUsOpenserverSessionPacketReadTypes = { 2, "PacketReadTypes", "com.us.openserver.session", NULL, 0x1, 1, methods, 3, fields, 0, NULL, 0, NULL, NULL, NULL };
28 | return &_ComUsOpenserverSessionPacketReadTypes;
29 | }
30 |
31 | @end
32 |
33 | void ComUsOpenserverSessionPacketReadTypes_init(ComUsOpenserverSessionPacketReadTypes *self) {
34 | NSObject_init(self);
35 | }
36 |
37 | ComUsOpenserverSessionPacketReadTypes *new_ComUsOpenserverSessionPacketReadTypes_init() {
38 | ComUsOpenserverSessionPacketReadTypes *self = [ComUsOpenserverSessionPacketReadTypes alloc];
39 | ComUsOpenserverSessionPacketReadTypes_init(self);
40 | return self;
41 | }
42 |
43 | ComUsOpenserverSessionPacketReadTypes *create_ComUsOpenserverSessionPacketReadTypes_init() {
44 | return new_ComUsOpenserverSessionPacketReadTypes_init();
45 | }
46 |
47 | J2OBJC_CLASS_TYPE_LITERAL_SOURCE(ComUsOpenserverSessionPacketReadTypes)
48 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/SessionCloser.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/SessionCloser.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("SessionCloser_INCLUDE_ALL")
9 | #ifdef SessionCloser_RESTRICT
10 | #define SessionCloser_INCLUDE_ALL 0
11 | #else
12 | #define SessionCloser_INCLUDE_ALL 1
13 | #endif
14 | #undef SessionCloser_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionSessionCloser_) && (SessionCloser_INCLUDE_ALL || defined(ComUsOpenserverSessionSessionCloser_INCLUDE))
17 | #define ComUsOpenserverSessionSessionCloser_
18 |
19 | #define JavaLangRunnable_RESTRICT 1
20 | #define JavaLangRunnable_INCLUDE 1
21 | #include "java/lang/Runnable.h"
22 |
23 | @class ComUsOpenserverSessionSession;
24 |
25 | @interface ComUsOpenserverSessionSessionCloser : NSObject < JavaLangRunnable >
26 |
27 | #pragma mark Public
28 |
29 | - (instancetype)initWithComUsOpenserverSessionSession:(ComUsOpenserverSessionSession *)session;
30 |
31 | - (void)close;
32 |
33 | - (void)closeWithInt:(jint)protocolId;
34 |
35 | - (void)closeBackgroundThread;
36 |
37 | - (void)closeBackgroundThreadWithInt:(jint)protocolId;
38 |
39 | - (void)run;
40 |
41 | @end
42 |
43 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionSessionCloser)
44 |
45 | FOUNDATION_EXPORT void ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSessionCloser *self, ComUsOpenserverSessionSession *session);
46 |
47 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionCloser *new_ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSession *session) NS_RETURNS_RETAINED;
48 |
49 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionCloser *create_ComUsOpenserverSessionSessionCloser_initWithComUsOpenserverSessionSession_(ComUsOpenserverSessionSession *session);
50 |
51 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionSessionCloser)
52 |
53 | #endif
54 |
55 | #pragma pop_macro("SessionCloser_INCLUDE_ALL")
56 |
--------------------------------------------------------------------------------
/Samples/iOS/HelloClient/HelloClient/src/SessionOpener.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the J2ObjC translator. DO NOT EDIT!
3 | // source: ./com/us/openserver/session/SessionOpener.java
4 | //
5 |
6 | #include "J2ObjC_header.h"
7 |
8 | #pragma push_macro("SessionOpener_INCLUDE_ALL")
9 | #ifdef SessionOpener_RESTRICT
10 | #define SessionOpener_INCLUDE_ALL 0
11 | #else
12 | #define SessionOpener_INCLUDE_ALL 1
13 | #endif
14 | #undef SessionOpener_RESTRICT
15 |
16 | #if !defined (ComUsOpenserverSessionSessionOpener_) && (SessionOpener_INCLUDE_ALL || defined(ComUsOpenserverSessionSessionOpener_INCLUDE))
17 | #define ComUsOpenserverSessionSessionOpener_
18 |
19 | #define JavaLangRunnable_RESTRICT 1
20 | #define JavaLangRunnable_INCLUDE 1
21 | #include "java/lang/Runnable.h"
22 |
23 | @class ComUsOpenserverClient;
24 | @class ComUsOpenserverSessionSession;
25 |
26 | @interface ComUsOpenserverSessionSessionOpener : NSObject < JavaLangRunnable >
27 |
28 | #pragma mark Public
29 |
30 | - (instancetype)initWithComUsOpenserverClient:(ComUsOpenserverClient *)client;
31 |
32 | - (ComUsOpenserverSessionSession *)connect;
33 |
34 | - (ComUsOpenserverSessionSession *)connectBackgroundThread;
35 |
36 | - (void)run;
37 |
38 | @end
39 |
40 | J2OBJC_EMPTY_STATIC_INIT(ComUsOpenserverSessionSessionOpener)
41 |
42 | FOUNDATION_EXPORT void ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverSessionSessionOpener *self, ComUsOpenserverClient *client);
43 |
44 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionOpener *new_ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverClient *client) NS_RETURNS_RETAINED;
45 |
46 | FOUNDATION_EXPORT ComUsOpenserverSessionSessionOpener *create_ComUsOpenserverSessionSessionOpener_initWithComUsOpenserverClient_(ComUsOpenserverClient *client);
47 |
48 | J2OBJC_TYPE_LITERAL_HEADER(ComUsOpenserverSessionSessionOpener)
49 |
50 | #endif
51 |
52 | #pragma pop_macro("SessionOpener_INCLUDE_ALL")
53 |
--------------------------------------------------------------------------------