Comments (6)
You need to implement this yourself and do filtering, I don't think there is a way around it.
from go-stun.
do you mean that impement another keepalive method myself?
from go-stun.
Well, you can either use the existing one provided by the library, and filter out packets coming back, or do an application level keepalive, by trying to reconnect to some node every 24seconds.
from go-stun.
for the first way:
but there are two problem
1: i can filter packets for comming back, but your keepalive method change the property of the connection, it calls setreaddeadline
2. the keepalive method will receive many my own packets , which makes my protocol error.
that's why i want sending stun request only
from go-stun.
the second way is ok,
but there is no relation with this keepalive method.
from go-stun.
But you can already implement keepalives in your own application, sending a random packet somewhere, or doing it at your protocol level.
from go-stun.
Related Issues (20)
- Am I insane? HOT 10
- Two more bugs
- Please support the newest RFC HOT 8
- server implementation HOT 4
- Please version go-stun HOT 2
- UDP hole punching question HOT 1
- what is the reason "Server error: response IP/port" HOT 7
- go-stun can't support coturn-4.5.0.6 HOT 3
- how use passwd and username? HOT 1
- NATUnknown HOT 1
- Naming of NATSymmetricUDPFirewall HOT 5
- 新版的External IP这个返回的是不是有问题?一直变动
- Get external ip from website
- Does it support ipv6? HOT 2
- NAT Type: UDP is blocked HOT 3
- [Feature request] Add option to use fixed port for testing HOT 3
- Is there a plan to support TCP protocol?
- Inconsistent results with pystun
- Doesn't work with some servers HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-stun.