Code Monkey home page Code Monkey logo

dotnetty_for_unity's Introduction

DotNetty는 Java 진영에서 많이 쓰이고 있는, EventDriven 방식의 고성능 비동기 네트워크 프레임워크인 Netty를 C# .NET으로 포팅한 것입니다. DotNetty를 Unity GameEngine에서 사용하기 위해 DotNetty 리포지토리에서 코드 일부분을 수정하였습니다.

DotNetty 리포지토리 -> https://github.com/Azure/DotNetty

Unity 2019.2.10f 에서 테스트 되었습니다. (테스트 설정-> IL2CPP 빌드, Release 모드, API Compatibility .NET Standard 2.0 & .NET 4.x)

Android, iOS, Standalone Windows & MacOS 빌드에서 TCP, UDP통신이 동작하는것을 확인하였습니다.

사용법

DotNetty-0.6.0_forUnity Plugins 폴더를 유니티 프로젝트의 Assets/Plugins 폴더로 복사하고나서 사용하시면 됩니다.

dotnetty_for_unity's People

Contributors

elky84 avatar wizard872 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

dotnetty_for_unity's Issues

Report an error on an Android device:Couldn't open advapi32, error: Cannot load library: ?

9-28 11:38:42.183 3359-3379/? I/Unity: Built from '2019.3/staging' branch, Version '2019.3.0f6 (27ab2135bccf)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a', Stripping 'Enabled' 09-28 11:38:42.536 3359-3379/? E/EGL_emulation: [eglGetConfigAttrib] Bad attribute idx 12513 09-28 11:38:42.536 3359-3379/? E/EGL_emulation: tid 3379: eglGetConfigAttrib(777): error 0x3004 (EGL_BAD_ATTRIBUTE) 09-28 11:38:42.536 3359-3379/? E/EGL_emulation: [eglGetConfigAttrib] Bad attribute idx 12514 09-28 11:38:42.536 3359-3379/? E/EGL_emulation: tid 3379: eglGetConfigAttrib(777): error 0x3004 (EGL_BAD_ATTRIBUTE) 09-28 11:38:42.536 3359-3379/? E/EGL_emulation: [eglGetConfigAttrib] Bad attribute idx 1 09-28 11:38:42.536 3359-3379/? E/EGL_emulation: tid 3379: eglGetConfigAttrib(777): error 0x3004 (EGL_BAD_ATTRIBUTE) 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090dc 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090dc 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008f38 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008f38 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090db 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090db 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090d6 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090d6 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090da 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090da 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090eb 09-28 11:38:42.591 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000090eb 09-28 11:38:42.592 3359-3379/? D/Unity: GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_EXT_texture_format_BGRA8888 GL_APPLE_texture_format_BGRA8888 GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_robustness GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc 09-28 11:38:42.593 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008b4a 09-28 11:38:42.593 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008b4a 09-28 11:38:42.593 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008a30 09-28 11:38:42.593 3359-3379/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008a30 09-28 11:38:42.985 3359-3409/? E/Unity: Unable to find advapi32 09-28 11:38:42.988 3359-3409/? W/Unity: Plugins: Couldn't open advapi32, error: Cannot load library:

https://github.com/neuecc/MessagePack-CSharp/issues/748
How did you solve it?

can‘t connect to DotnettyServer in unity 2021

Hi,wizard872,

Very thanks to see your project.

I use your code in my unity project.

But i can't get channel from this code (tcpChannel = await tcpBootstrap.ConnectAsync(serverAddress_TCP); )

Have you ever been able to connect to your server? Would it be convenient to tell me your unity version?

Thanks~

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.