FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gosrt/logging/udt_wrapper.cpp at master · mixer/gosrt · GitHub
This repository was archived by the owner on Jul 16, 2020. It is now read-only.
mixer
/
gosrt
Public archive
forked from
openfresh/gosrt
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gosrt
/
logging
/
udt_wrapper.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (23 loc) · 763 Bytes
Breadcrumbs
gosrt
/
logging
/
udt_wrapper.cpp
Copy path
File metadata and controls
27 lines (23 loc) · 763 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
Copyright (c) 2018 CyberAgent, Inc. All rights reserved.
//
https://github.com/openfresh/gosrt
#
include
"
udt_wrapper.h
"
#
include
<
srt/udt.h
>
extern
"
C
"
{
int
udtSetLogStream
(
const
char
* logfile) {
std::ofstream logfile_stream;
logfile_stream.
open
(logfile);
if
( !logfile_stream )
{
return
SRT_ERROR
;
}
else
{
UDT::setlogstream
(logfile_stream);
}
return
0
;
}
void
logHandler_cgo
(
void
* opaque,
int
level,
const
char
* file,
int
line,
const
char
* area,
const
char
* message) {
void
logHandler
(
void
*,
int
,
const
char
*,
int
,
const
char
*,
const
char
*);
logHandler
(opaque, level, (
char
*)file, line, (
char
*)area, (
char
*)message);
}
}
Back
|
FazBrowse Home
|
New Git URL