Warning: session_start(): open(/var/lib/php/sessions/sess_5b6fpf2vi3uvmal6htjvvgj285, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
addPortToHost [1032713]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1032713 // addPortToHost

JavaX fragment (include)

1  
// host is either a host name or "hostname:1234"
2  
// result is "hostname:456"
3  
sS addPortToHost(S host, int port) {
4  
  ret beforeColonOrAll(host) + ":" + port;
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032713
Snippet name: addPortToHost
Eternal ID of this version: #1032713/1
Text MD5: af4d59afa6dfac03790713e0c4b6e319
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-03 17:39:00
Source code size: 162 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 512 / 533
Referenced in: [show references]