Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/debug-ing/rtp

library rtp with rfc8860 in Go
https://github.com/debug-ing/rtp

Last synced: 7 days ago
JSON representation

library rtp with rfc8860 in Go

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()
}
```