zepinos / chatserver Goto Github PK
View Code? Open in Web Editor NEWNetty, TCP, JSON 을 이용한 싱글 서버용 채팅 서버
License: Artistic License 2.0
Netty, TCP, JSON 을 이용한 싱글 서버용 채팅 서버
License: Artistic License 2.0
안녕하세요 netty로 채팅 서버 구현하려고 올려주신 예제로 테스트 해보고 있는데
올려주신 것처럼 클라이언트에서 메세지를 보내면 오류가 나더라구요
[id: 0xb312e5fe, L:/127.0.0.1:9812 - R:/127.0.0.1:51017] RECEIVED,
DefaultFullHttpRequest(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: "USERID": "TEST1", "PASSWORD": "123456"}), version: HTTP/1.0, content: UnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
GET /bad-request HTTP/1.0, 0B
2018-01-16 13:15:32.960 INFO 17284 --- [ntLoopGroup-3-1] io.netty.handler.logging.LoggingHandler : [id: 0xb312e5fe, L:/127.0.0.1:9812 - R:/127.0.0.1:51017] RECEIVED, DefaultFullHttpRequest(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: "USERID": "TEST1", "PASSWORD": "123456"}), version: HTTP/1.0, content: UnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
이런식의 오류가 발생합니다
혹시 해결방법을 알려주실 수 있을지요
------ 해결되었습니다 TCP로 세팅하니 해결되었네요.^^ 예제 감사합니다
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.