Hi I'm trying to create a socket connection to my server, but there's something that does not work. Connection works fine, no error achieved but no reaction for the commands. Anybody could help? Thanks in advance, MfG
Code:
Dim query As String = "@SHOWMETHEMONEY.@EVENT TEST 1."
Dim host As IPAddress = Nothing
Dim mySock As Socket = Nothing
Try
If Not IPAddress.TryParse("192.168.1.102", host) Then
MessageBox.Show("This IP is not valid")
Exit Sub
End If
Dim ep As IPEndPoint = New IPEndPoint(host, Integer.Parse(30000))
mySock = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
mySock.Connect(ep)
If mySock.Connected Then
mySock.Send(Encoding.ASCII.GetBytes(query))
MsgBox("Sended!")
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
xD Did you really think, that those commands would further work as String signs?
You lol'd my day!
Quote:
Originally Posted by Jоe
hex rays.
You just failed
Quote:
Originally Posted by JachuPL
Hi I'm trying to create a socket connection to my server, but there's something that does not work. Connection works fine, no error achieved but no reaction for the commands. Anybody could help? Thanks in advance, MfG
Code:
Dim query As String = "@SHOWMETHEMONEY.@EVENT TEST 1."
Dim host As IPAddress = Nothing
Dim mySock As Socket = Nothing
Try
If Not IPAddress.TryParse("192.168.1.102", host) Then
MessageBox.Show("This IP is not valid")
Exit Sub
End If
Dim ep As IPEndPoint = New IPEndPoint(host, Integer.Parse(30000))
mySock = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
mySock.Connect(ep)
If mySock.Connected Then
mySock.Send(Encoding.ASCII.GetBytes(query))
MsgBox("Sended!")
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
socket connection status 08/21/2012 - C/C++ - 2 Replies und da habe ich wieder ein problem mit den sockets :)
ich connecte mit einem nonblocking socket zu einem server. soweit alles gut, wenn ich allerdings vom server getrennt werde, bekomme ich das nicht mit.
aktuell versuche ich das so:
int r = select(this->m_socket+1,&fdread,&fdwrit e,nullptr,&tv);
if(r<=0)
return false;
java.net.socket.exception: Connection reset 06/06/2012 - Minecraft - 4 Replies Hallo . Ich wollt vorhin auf nen server von nem freund und als miecraft verbinden wollte kam erst die meldung "can't reach server" als ich dann trotzdem auf verbinden gedrückt hab kam die meldung aus der überschrift.Weiß jemand woran das liegt vllt an überlastung oder so ?
Socket Connection VB.NET 02/15/2012 - Metin2 Private Server - 0 Replies Hello, i'm trying to connect my software at metin2's server, with socket connection.
But I do not know when i err..
This is the code:
Dim query As String = "@SHOWMETHEMONEY.@EVENT TEST 1."
Dim host As IPAddress = Nothing
Dim mySock As Socket = Nothing
Try
If Not IPAddress.TryParse("5.100.136.100", host) Then
MessageBox.Show("This IP is not valid")