Skip to content

debug-ing/rtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTP Server Go

Introduction

RealTime Protocol implementation based on RFC 8860 in Golang. Get Message and Send Message.

Example

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

About

library rtp with rfc8860 in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published