|
-
Jul 27th, 2004, 01:04 AM
#1
Thread Starter
Addicted Member
IpEndPoint
How to put example 153.32.53.121
into
Private _IpEndPoint as new IPEndPoint()??
the arguments inside as System.net.ipaddress...i put it 153.32.53.121
inside and got an error
-
Jul 27th, 2004, 01:13 AM
#2
VB Code:
Dim ie As New Net.IPEndPoint(Net.IPAddress.Parse("153.32.53.121", Port))
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jul 27th, 2004, 01:30 AM
#3
Thread Starter
Addicted Member
Why is it that I cant send data over..even though I have connected?
Dim Buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(ClientMessageTextBox.Text)
_ClientSocket.Send(Buffer, 0, Buffer.Length, SocketFlags.None)
-
Jul 27th, 2004, 01:39 AM
#4
Hi.
I'm really not the right person to answer network related questions...Sorry.
But from the looks of it, I'd say that your send is just fine. I suspect that it's the server not listening, or not reacting correctly.
Try searching MSDN, I believe there's an example of how to make a simple chat program.
I'm sorry I can't be of more help, but I'm sure there are others here who can.
Good Luck.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jul 27th, 2004, 01:40 AM
#5
Thread Starter
Addicted Member
Why is it that I cant send data over..even though I have connected?
Dim Buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(ClientMessageTextBox.Text)
_ClientSocket.Send(Buffer, 0, Buffer.Length, SocketFlags.None)
-
Jul 27th, 2004, 01:43 AM
#6
Thread Starter
Addicted Member
eh...you know how to send a simple character over to the server
-
Jul 27th, 2004, 01:48 AM
#7
Hi.
Not in details. Sorry.
But I believe I know the principle of it.
When you connect to the server, the TCPListener creates a TCPClient object. Then you add eventhandlers to it to catch DataRecieved or similiar events.
Then an event will be raised in the server whenever you send data to it.
So I think your send function is ok. I think you just haven't created the TCPObject in the server, so the server isn't really listening.
I will try to find that chat sample and post a link.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jul 27th, 2004, 01:58 AM
#8
Hi.
I found that sample.
http://msdn.microsoft.com/library/de...et08282001.asp
There's a lot in there that you probably don't need, but you should focus on establishing the connection, and see how they add handlers (or whatever it is they're doing) to make the server respond to incomming data.
I hope this helps you.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jul 27th, 2004, 02:06 AM
#9
Thread Starter
Addicted Member
-
Jul 27th, 2004, 02:11 AM
#10
Thread Starter
Addicted Member
but now I have to send a character to the server.
the server is not me...so the configuration is not the same....
i;m the client part
-
Jul 27th, 2004, 02:43 AM
#11
Ohh. In that case I'm afraid I'm stumped.
As far as I can see your send function should be ok. The only other thing I can think of, is that you might be connected to the wrong port or maybe not connected at all?!?
Sorry.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|