remoton

Check-in [d62295450d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:readme
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:d62295450d9c16b0900799581e104bab1df4f70daf069a5da66172bf96bdddeb
User & Date: bit4bit@riseup.net 2015-08-19 03:37:42
Context
2015-08-19
03:38
merge check-in: 8c7b3188c5 user: bit4bit@riseup.net tags: master, trunk
03:37
readme check-in: d62295450d user: bit4bit@riseup.net tags: master, trunk
2015-08-09
23:32
dockerfile check-in: 23d10c4ed9 user: bit4bit@riseup.net tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to README.md.

1
2
3
4
5
6


7
8
9
10
11
12
13
..
87
88
89
90
91
92
93
94
95
96
97




















































![Logo Remoton](https://cloud.githubusercontent.com/assets/1474826/8950994/543baebc-358e-11e5-886c-d4c440d3417f.png)

**DEV STAGE**

(Go) Own remote desktop multi-platform



Commands
  * `remoton-server-cert` generate certificates for secure connections
  * `remoton-server` handle connections between clients and supports
  * `remoton-client-desktop` GUI version for sharing desktop
  * `remoton-support-desktop` GUI version for handling remote desktop


................................................................................
  * [Go-Gtk](github.com/mattn/go-gtk)
  * [Log](github.com/Sirupsen/logrus)
  * [HttpRouter](github.com/julienschmidt/httprouter)
  * [Websocket](golang.org/x/net/websocket)

# Library

Remoton it's a library for building tunnels.
See [Doc](http://godoc.org/github.com/bit4bit/remoton)

  * Now only support Websocket -Binary- and TCP.


























































>
>







 







|


|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
..
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
![Logo Remoton](https://cloud.githubusercontent.com/assets/1474826/8950994/543baebc-358e-11e5-886c-d4c440d3417f.png)

**DEV STAGE**

(Go) Own remote desktop multi-platform

**Remoton desktop** it's proof concept of **Remoton Library**

Commands
  * `remoton-server-cert` generate certificates for secure connections
  * `remoton-server` handle connections between clients and supports
  * `remoton-client-desktop` GUI version for sharing desktop
  * `remoton-support-desktop` GUI version for handling remote desktop


................................................................................
  * [Go-Gtk](github.com/mattn/go-gtk)
  * [Log](github.com/Sirupsen/logrus)
  * [HttpRouter](github.com/julienschmidt/httprouter)
  * [Websocket](golang.org/x/net/websocket)

# Library

Remoton it's a library for building programmatically tunnels.
See [Doc](http://godoc.org/github.com/bit4bit/remoton)

  * Now only support Websocket -Binary- and TCP.

## Listener

You can listen inbound connections on remoton server
~~~go
	import "github.com/bit4bit/remoton"
	....
	
	
	rclient := remoton.Client{Prefix: "/remoton", TLSConfig: &tls.Config{
		InsecureSkipVerify: true,
	}}
	session, err := rclient.NewSession("https://miserver.com:9934", "public")
	if err != nil {
		log.Fatal(err)
	}
	defer session.Destroy()
	
	//now can create a listener for every service you want
	//example
	listener := session.Listen("chat")
	go func(){
		 for {
			conn, err := listener.Accept()
			//now you use conn -net.Conn-
		 }
	}()
	
	listener = session.Listen("rpc")
	//or use it example RPC
	srvRpc := rpc.NewServer()
	srvRpc.Register(&Api)
	go srvRpc.Accept(listener)
~~~

## Dial

You can dial a active session.
~~~go
    import "github.com/bit4bit/remoton"

	rclient := remoton.Client{Prefix: "/remoton", TLSConfig: &tls.Config{
		InsecureSkipVerify: true,
	}}
	session := &remoton.SessionClient{Client: rclient,
		ID: "misessionid", AuthToken: "mitoken",
		APIURL: "https://miserver.com:9934"}
	
	//now you can dial any service
	conn, err := session.Dial("chat")
	//use conn -net.Conn-
~~~