mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
fake-editor sends filename now, so that we can write tag descriptions, for example
This commit is contained in:
parent
4c79dd24a7
commit
078c1612ac
4 changed files with 28 additions and 9 deletions
scripts
|
@ -7,5 +7,11 @@ $socket = IO::Socket::INET->new(PeerAddr => "127.0.0.1",
|
|||
Proto => "tcp",
|
||||
Type => SOCK_STREAM);
|
||||
|
||||
# Send the length of the first argument as a byte.
|
||||
$socket->send(chr(length($ARGV[0])));
|
||||
# Send the first argument as a string.
|
||||
$socket->send($ARGV[0]);
|
||||
|
||||
# This call is intended to block, we're waiting for Godot to close the connection.
|
||||
my $reply;
|
||||
$socket->read($reply, 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue