tcpsocket Questions

3

I connect to socket server in NodeJs using this command: client = net.createConnection() How can I then properly disconnect from the server? I tried client.end() and even client.destroy() but...
Neisa asked 8/2, 2012 at 10:32

1

Solved

I'm trying to send some data from Firefox to java desktop application .so my java class work as a server and Firefox script work as a client .when i test it using another java class which is client...
Resinoid asked 14/9, 2015 at 3:11

2

I ran into a little issue with transferring data over (TCP) sockets. Small background on what I am doing: I am sending data from side A to B. Data sent can be of variable lengths, assuming max siz...
Pal asked 12/9, 2014 at 7:56

1

Solved

There are 4 bytes read from TCPSocket (actually socket returns a string and then I call .bytes to get an array). Now they need to be converted to int32 big endian. Or may be TCPSocket has some met...
Muth asked 23/5, 2014 at 8:6

2

Solved

Is it possible to have a TCP Socket server running which accepts incoming connections from WebSocket clients? I have a TCP Socket server and I'd like to be able to test this in a browser. Is this p...
Riker asked 1/3, 2013 at 15:3

1

Solved

It's handy to send server response to the client by server = TCPServer.open 1234 socket = server.accept socket.puts 'data from server side' and in the client side, curl in this case curl -v ...
Sophiesophism asked 17/4, 2012 at 14:20

1

Solved

A load balancer will have some limit on how many tcp ports it can simultaneously use based on the platform it's running on (e.g. I read somewhere that Linux can have max 65535 tcp ports open simult...
Sheepshearing asked 10/4, 2012 at 8:52

2

Solved

I just started with TCPSockets. I am simply trying to get the google home page. This is my code: require 'socket' host = 'http://www.google.com' port = 80 s = TCPSocket.open host, port s.puts "G...
Airdrome asked 27/12, 2011 at 22:17

3

Solved

Hey Im totally out of my depth and my brain is starting to hurt.. :( I need to covert an integer so that it will fit in a 3 byte array.(is that a 24bit int?) and then back again to send/receive th...
Whittier asked 7/12, 2010 at 15:17

1

Solved

Is there a way to find out how many bytes of data is available on an TCPSocket in Ruby? I.e. how many bytes can be ready without blocking?
Overarm asked 21/10, 2010 at 1:54
1

© 2022 - 2024 — McMap. All rights reserved.