Questions tagged as 'socket'

2
answers

Send text with Client Socket from one form that is displayed above another Form that is always on top

I'm having trouble sending text messages from a Client Socket . The form that sends the text is always displayed above the form that always stays on the top, when FormOnTop does not exist (not shown), works fine, since FormOnTop e...
asked by 07.11.2015 / 14:06
1
answer

Problems connecting to my computer using external ip

I am trying to make a java application that will serve as a server for an android application to establish a Socket communication with the computer that my program is open on the port that it is listening to (I chose 50000). everything is correc...
asked by 23.09.2015 / 16:53
0
answers

connection via socket server android, client c #, server inside another network

I've already been able to do C # communication - > Android seamlessly, but when Android connects to a local network, I do not know how to make this connection via ip, since it acquires the local IP. I can get the IP of the modem to which it i...
asked by 26.08.2015 / 17:55
1
answer

Socket Asynchronous C # receiving more than one message at a time

I'm developing a C # Dll that works with Asynchronous TCP Socket for developing some tools I'm working on, the problem appears when the client receives many messages in a short period, in which case the messages are in JSON, so the server sends...
asked by 16.09.2015 / 15:34
1
answer

WinSock (VB6) vs Socket in C #

I have a code in VB6 that uses MSWINSCK.OCX to send commands to an equipment, the code is below. But I have to switch to C # and am attempting to use the Sockets class, the problem I'm facing is that the C # program, using Sockets, is not gettin...
asked by 07.10.2015 / 21:23
0
answers

Ruby Winapi Socket TCP / IP

Hello, Currently I need to create a ruby connection using winapi only. Everything works perfectly, however, when the client sends an information, it needs EXACTLY AN ANSWER, if there is no response or there is more than one data sent by the serv...
asked by 16.05.2015 / 02:26
1
answer

C # Stream.BeginSend

As you can see in the link below, the StreamReceiver method uses the BeginRead method to read asynchronously, since in the SendData method no asynchronous writing is used, what is the logic of reading asynchronously and writing synchronously?...
asked by 08.06.2014 / 19:59
1
answer

C # Socket refusing connection public [closed]

I'm using the example server and client below to make a TCP connection via the internet and on the client it returns the following message:    Additional information: No connection could be made because the target machine actively refused th...
asked by 12.06.2014 / 00:30
2
answers

Read Blocking in C

I am trying to make a server in C. After receiving the client connection the purpose is to wait for client information on the socket, for this I use the following code. /*Read Messages*/ close(fd); nread = read(fd, msg, BUFFERS...
asked by 24.03.2014 / 23:22
2
answers

Socket locked when performing data exchange

I am trying to execute server and client code in Java for the client to send a String , the server to process and return it and the client to receive. The customer is always kept listening. But after receiving String it hangs....
asked by 18.03.2014 / 15:36