mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-09-26 18:07:47 +02:00
Merge 02f21db6d0
into 9da0bd1fbd
This commit is contained in:
commit
7689f55ec0
6 changed files with 7 additions and 6 deletions
|
@ -20,7 +20,8 @@ var _hint_client_connection
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
_hint_server = TCP_Server.new()
|
_hint_server = TCP_Server.new()
|
||||||
_hint_server.listen(1235)
|
_hint_server.listen(1235, "127.0.0.1")
|
||||||
|
OS.set_environment("HINT_TCP_PORT", "1235")
|
||||||
|
|
||||||
var args = helpers.parse_args()
|
var args = helpers.parse_args()
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ func _shell_binary():
|
||||||
#func run_async_thread(command):
|
#func run_async_thread(command):
|
||||||
# var port = 1000 + (randi() % 1000)
|
# var port = 1000 + (randi() % 1000)
|
||||||
# var s = TCP_Server.new()
|
# var s = TCP_Server.new()
|
||||||
# s.listen(port)
|
# s.listen(port, "127.0.0.1")
|
||||||
# var _pid = OS.execute("ncat", ["127.0.0.1", str(port), "-c", command], false, [], true)
|
# var _pid = OS.execute("ncat", ["127.0.0.1", str(port), "-c", command], false, [], true)
|
||||||
# while not s.is_connection_available():
|
# while not s.is_connection_available():
|
||||||
# pass
|
# pass
|
||||||
|
|
|
@ -13,7 +13,7 @@ func _ready():
|
||||||
start()
|
start()
|
||||||
|
|
||||||
func start():
|
func start():
|
||||||
_s.listen(port)
|
_s.listen(port, "127.0.0.1")
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
if _s.is_connection_available():
|
if _s.is_connection_available():
|
||||||
|
|
|
@ -13,7 +13,7 @@ func _ready():
|
||||||
start()
|
start()
|
||||||
|
|
||||||
func start():
|
func start():
|
||||||
_s.listen(port)
|
_s.listen(port, "127.0.0.1")
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
if _s.is_connection_available():
|
if _s.is_connection_available():
|
||||||
|
|
|
@ -10,7 +10,7 @@ var _client_connection
|
||||||
func _ready():
|
func _ready():
|
||||||
# Initialize TCP server for fake editor.
|
# Initialize TCP server for fake editor.
|
||||||
_server = TCP_Server.new()
|
_server = TCP_Server.new()
|
||||||
_server.listen(1234)
|
_server.listen(1234, "127.0.0.1")
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
if _server.is_connection_available():
|
if _server.is_connection_available():
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
use IO::Socket;
|
use IO::Socket;
|
||||||
|
|
||||||
$socket = IO::Socket::INET->new(PeerAddr => "127.0.0.1",
|
$socket = IO::Socket::INET->new(PeerAddr => "127.0.0.1",
|
||||||
PeerPort => 1235,
|
PeerPort => $ENV{HINT_TCP_PORT},
|
||||||
Proto => "tcp",
|
Proto => "tcp",
|
||||||
Type => SOCK_STREAM);
|
Type => SOCK_STREAM);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue