-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtoxmux.go
63 lines (46 loc) · 857 Bytes
/
toxmux.go
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package main
import tox "github.com/TokTok/go-toxcore-c"
/// factory
type MuxManager struct {
}
// by pubkey, stream id
func (this *MuxManager) DispatchIncoming() {
}
///
type ToxMuxStream struct {
}
func (this *ToxMuxStream) Read() {
}
func (this *ToxMuxStream) Write() {
}
///
type ToxMuxBase struct {
t *tox.Tox
}
///
type ToxMuxClient struct {
ToxMuxBase
srv_pubkey string
conn_state string //
}
func NewToxMuxClient(t *tox.Tox, srv_pubkey string) *ToxMuxClient {
this := &ToxMuxClient{}
this.t = t
this.srv_pubkey = srv_pubkey
return this
}
func (this *ToxMuxClient) OpenStream() *ToxMuxStream {
return nil
}
///
type ToxMuxServer struct {
ToxMuxBase
}
func NewToxMuxServer(t *tox.Tox) *ToxMuxServer {
this := &ToxMuxServer{}
this.t = t
return this
}
func (this *ToxMuxServer) AcceptStream() *ToxMuxStream {
return nil
}