Coder Social home page Coder Social logo

luxoftsdl / sdl_core_winport Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 5.0 22.32 MB

CMake 1.44% Shell 3.36% C++ 71.33% C 4.35% Makefile 0.69% Python 2.51% HTML 0.06% JavaScript 7.93% CSS 0.82% PLpgSQL 0.06% QML 7.30% QMake 0.01% Batchfile 0.02% M4 0.12%

sdl_core_winport's People

Contributors

agaliuzov avatar anatoliy-leshin avatar anosach-luxoft avatar asenkk avatar callousodesa avatar dtrunov avatar foobar123asdf avatar jack-byrne avatar justinjdickow avatar lea255ace avatar luxoftakutsan avatar malirod avatar nk0leg avatar oherasym avatar rodion-m-binary avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdl_core_winport's Issues

Change the interface of the Pipe::Send and Socket::Send

Return just int32_t instead of bool result + out param. E.g. on windows platform the result is int. This allows to return -1 as error flag. The original problem was that send on posix returns ssize_t.
On my opinion int32_t is more that enough to store the bytes sent. typical tcp frame buffer is 4096 bytes. Input and output queues also have sizes which fits into the int. If we will try more than available free space in the buffer we would get ewouldblock error.

Change in the interface will make the usage much more clear.

cache_manager(Policy) has map with too long name (CalculatedPermissions)

Here is one warning sample:

[ 95%] Building CXX object src/components/policy/src/policy/CMakeFiles/Policy.dir/Policy_automoc.cpp.obj
Policy_automoc.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xmemory(196) : warning C4503: 'std::_Tree_val<_Traits>::_Myval' : decorated name length exceeded, name was truncated
        with
        [
            _Traits=std::_Tmap_traits<std::string,policy::CacheManager::AppCalculatedPermissions,std::less<policy::HMILevel>,std::allocator<std::pair<const std::string,policy::CacheManager::AppCalculatedPermissions>>,false>
        ]

Here is related help from MS: https://msdn.microsoft.com/en-us/library/074af4b6.aspx

Update README.md

It seems to be redundant to use apt-get on Windows platform and so on.

HMI looses connection to the mobile after some time

This should also be reproducible in Qt version. At least I've faced with issue in my refactored Qt branch.

I've retested this on current develop (win native) and can reproduce the issue.
Steps. Connect SPT. Open full mode. And leave it. After some time there will be "Connection was lost" notification on the HMI side. But SPT will still be in connected mode.
If I didn't do any actions on the SPT side, then there will be quite fast disconnect. In some cases disconnection was after 5 mins.

Build infrastructure refactoring

  • CMakeLists.txt files refactoring
  • cmd files refactoring
  • Delete environment variables usage if possible
  • Make 3rd party paths and environment variables consistent

Rework `IsCertificateUpdateRequired` method

IsCertificateUpdateRequired method should be called during starting of new session with mobile device. This method uses the due date of certificate. In case SDL doesn't have certficate at all there is nothing to check and method all the time returns true since the variable which we use to store certificate time contains default value (01/01/1900).

To avoid such problem SDL uses certificate_exists_ flag in order to understand if certificate has been set to the SSL context. Using this flag currently workable but error prone solution. So we need to figure out how to implement proper check for certificate date.

Refactor DateTime class

  • Remove class DateTime and declare all functions just in date_time namespace
  • Rework getCurrentTime() function in Qt version because it works incorrectly
  • timeval struct uses in Qt version is not crossplatform
  • Analyze all related functions for useless and redundant

Create script which will prepare the release builds

Currently we create release builds manually. It's easy to forget to update files (Policy.dll) or some other file. It would be nice to have a script (cmd or python) in infrastructure which will build and copy output files to some place. This will allow to reduce the possibility to include into release wrong files.

Remove `/FORCE:MULTIPLE` linker flag from smartDeviceLinkCore cmake file

This flag was added because there an issue in the smart object module. Without this flag the project will not compile.
But this is hiding the real problem but not fix.
we should fix the real problem. currently we have two link warning. One in smart object(real problem) and the another because of this force flag.
/INCREMENTAL:NO flag is also related to this issue. It's not needed.

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

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

  • D3 photo D3

    Data-Driven Documents codes.