Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
B Language Server
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
B Language Server
Commits
af360452
Commit
af360452
authored
Oct 20, 2020
by
SeeBasTStick
Browse files
Options
Downloads
Patches
Plain Diff
added dynamic port allocation
parent
e2640e5c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/b/language/server/App.kt
+3
-2
3 additions, 2 deletions
src/main/kotlin/b/language/server/App.kt
with
3 additions
and
2 deletions
src/main/kotlin/b/language/server/App.kt
+
3
−
2
View file @
af360452
...
@@ -9,8 +9,9 @@ import java.util.concurrent.Future
...
@@ -9,8 +9,9 @@ import java.util.concurrent.Future
fun
main
()
{
fun
main
()
{
println
(
"opening connection and waiting ..."
)
val
socket
=
ServerSocket
(
0
)
val
socket
=
ServerSocket
(
55556
)
println
(
"<${socket.localPort}> is the port; opening connection and listening"
)
val
channel
=
socket
.
accept
()
val
channel
=
socket
.
accept
()
println
(
"accepted connection from ${channel.inetAddress}"
)
println
(
"accepted connection from ${channel.inetAddress}"
)
startServer
(
channel
.
getInputStream
(),
channel
.
getOutputStream
())
startServer
(
channel
.
getInputStream
(),
channel
.
getOutputStream
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment