'프로그램개발/C# and unity'에 해당되는 글 43건
- 2021.12.06 unity ui 중 확장된 component
- 2021.03.11 간단한 머신러닝 테스트
- 2021.03.10 채팅 서버 클라우드 서비스 연구
- 2021.02.25 zeromq 채팅서버
- 2020.12.19 폴리곤 그리기
- 2020.08.28 nonblocking vs asynch 1
- 2020.08.27 악보 미디 라이브러리
- 2020.07.01 unity webgl 용 websocket 라이브러리
- 2020.06.29 유니티에서 스태틱변수 초기화
- 2020.06.19 유니티 webgl 모바일 워닝 막기
채팅 서버 클라우드 서비스 연구
firebase 실시간 db을 사용하기
google cloud function 을 사용하여 현재 채팅서버을 받기
db에 저장
기본 보안 구현
1. 전체 공개 채팅기능 - 패킷 자체를 base64
2. 그룹채팅기능 - 패킷 자체를 base64 후 서버에서 그룹별 xor 키로 암호화
3. 귀속말 - 패킷 자체를 base64
강화 보안 구현
1. 전체 공개 채팅기능 - 패킷 자체를 대칭키로 암호화
2. 그룹채팅기능 - 서버에서 그룹별 대칭키로 암호화
3. 귀속말 - 패킷 자체를 대칭키로 암호화 : 혹은 받는 유저의 공개키로 암호화
------------------------------------------
방기반 채팅서버 구축 방법
1.
https://homoefficio.github.io/2017/02/19/Blocking-NonBlocking-Synchronous-Asynchronous/
block nonblock
synch asynch 개념 정리에 좋은 글인것 같다.
ResetVariable.Static();//ResetAttribute가 사용된 모든 static 변수 초기화
ResetVariable.Static<class or structName>();//해당 타입의 ResetAttribute가 사용된 모든 static 변수 초기화
유니티에서 스태틱변수 초기화
using System;
using System.IO;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEditor.Callbacks;
public class PostBuildActions
{
[PostProcessBuild]
public static void OnPostProcessBuild(BuildTarget target, string targetPath)
{
var path = Path.Combine(targetPath, "Build/UnityLoader.js");
var text = File.ReadAllText(path);
text = text.Replace("UnityLoader.SystemInfo.mobile", "false");
File.WriteAllText(path, text);
}
}