我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在GO中获取传入的TTL

I'm struggling with a small project I am working on. I want to implement functionality in GO that allows me to set the IP header TTL on an outgoing UDP packet that I then send and view the received TTL on the other end. I have a tried using a number of connections provided by the 'net' library and have so far had no success (I can set the TTL but I can't read it). Can anyone suggest a way of sending and receiving UDP packets that provide access to the packet's TTL field?

近期文章

  • 在Windows中读取文件权限
  • 生成Golang grpc +自定义原型对象
  • Uncaught TypeError: Cannot read property 'options' of undefined
  • 在Go中使用secp256k1
  • 使用JulienSchmidt httprouter服务favicon.ico
  • Gorm和具有嵌套结构和关系的元素切片
  • 通过过多的Postgres连接,对等/断开管道重置连接
  • 转到通道缓冲区长度-最佳做法
  • 使用dep时Go Lint抱怨导入
  • 使用Go和GSM或ASCII编码通过AWS SNS发送长短信
  • 如何使用golang在mongodb中使用$ lookup获取计数值?
  • 如何为gRPC TLS连接设置docker-compose容器?
  • 数据框中的总和值
  • 使用SoftLayer API时,遮罩和滤镜不起作用
  • levedb是否支持仅键迭代?
  • Go中的模拟随机生成器
  • Dart不会出现“ Access-Control-Allow-Origin”标头错误
  • 如何在go中使用模板进行排名
  • 如何访问Istio API?
  • 备份DBmssql时出现Golang错误:BACKUP DATABASE异常终止

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华