https://github.com/debug-ing/rtp
library rtp with rfc8860 in Go
https://github.com/debug-ing/rtp
go rtp
Last synced: 8 months ago
JSON representation
library rtp with rfc8860 in Go
- Host: GitHub
- URL: https://github.com/debug-ing/rtp
- Owner: debug-ing
- Created: 2024-12-10T10:51:08.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-10T11:51:45.000Z (about 1 year ago)
- Last Synced: 2025-05-27T05:51:29.282Z (9 months ago)
- Topics: go, rtp
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RTP Server Go
## Introduction
RealTime Protocol implementation based on [RFC 8860](https://datatracker.ietf.org/doc/html/rfc8860) in Golang.
Get Message and Send Message.
## Example
```go
package main
import (
"fmt"
"net"
rtp "github.com/debug-ing/rtp"
)
func main() {
server := rtp.Init(5004, func(conn net.PacketConn, addr net.Addr, data []byte, rtpModel rtp.RTPPacket) {
fmt.Println("Received data from", rtpModel.Version)
rtp.Send(conn, addr, rtpModel, []byte("Response from server"))
})
server.Run()
}
```