This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {url:'stun:stun01.sipphone.com'}, | |
| {url:'stun:stun.ekiga.net'}, | |
| {url:'stun:stun.fwdnet.net'}, | |
| {url:'stun:stun.ideasip.com'}, | |
| {url:'stun:stun.iptel.org'}, | |
| {url:'stun:stun.rixtelecom.se'}, | |
| {url:'stun:stun.schlund.de'}, | |
| {url:'stun:stun.l.google.com:19302'}, | |
| {url:'stun:stun1.l.google.com:19302'}, | |
| {url:'stun:stun2.l.google.com:19302'}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var key = 'YOUR-KEY'; | |
| //Setting maxSockets to fix econnreset issue | |
| var separateReqPool = {maxSockets: 9999999}; | |
| var url = 'https://roads.googleapis.com/v1/snapToRoads?key='+key+'&interpolate=true&path=' + trackString; | |
| request.get({ | |
| url: url, json: true, pool: separateReqPool | |
| }, function (err, r, b) { | |
| console.log(err, b); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var https = require('https'); | |
| //Setting max sockets did the thing for me | |
| https.globalAgent.maxSockets = 99999999999; | |
| https.request.timeout = 60000; | |
| var options = { //setting options..host,port,path etc.. | |
| host: 'roads.googleapis.com', | |
| //timeout: 60000, | |
| port: 443, | |
| path: '/v1/snapToRoads?path=' + trackString + '&interpolate=true&key=' + key, |
NewerOlder