Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[28] Introduction to TCP/IP

Last post 08-25-2006 2:25 PM by drkarthik. 12 replies.
Page 1 of 1 (13 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [28] Introduction to TCP/IP

    This thread is for discussions of Introduction to TCP/IP.

    • Post Points: 60
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 11-15-2002 4:27 PM In reply to

    • whensley
    • Not Ranked
    • Joined on 11-15-2002
    • New Member
    • Points 20

    HELP!!!

    i created a client/server application using winsock, and everything works fine except if i try to send a message to all the clients from the server, only the last client actually recieves the message. after much research i found the service pack 4 for VB resolves this issue...but it only resolved the issue if i use my computer (that has VB) as the server.... i need to use a computer that does not have VB to be the server. Can anyone help me!!!!!
    • Post Points: 0
  • 12-16-2002 10:20 AM In reply to

    • BusterG
    • Not Ranked
    • Joined on 12-16-2002
    • New Member
    • Points 10
    How are you broadcasting? Are you using TCP/IP or UDP? I have sent broadcast messages using UDP just by using the broadcast address 255.255.255.255 so that the packet goes everywhere. I had problems prior to using this when the PC's were in different domains. I dont know if this helps!
    • Post Points: 0
  • 04-23-2003 6:07 AM In reply to

    • schmidt
    • Not Ranked
    • Joined on 04-23-2003
    • New Member
    • Points 10

    Protocol

    I am a new member and my question might have been asked before but i can not find it in the archives.
    But if anyone would be able to help, please do. I would be greatful.
    Q: I have to create a (http like) protocol to enable the client communicate with a server. I know the basics but would be greatful for any ideas. Thanks
    • Post Points: 0
  • 05-06-2003 6:17 PM In reply to

    • mstefan
    • Not Ranked
    • Joined on 05-06-2003
    • New Member
    • Points 15

    Example

    If you're using SocketWrench, there's an HTTP client and server example that's included that could probably serve as a foundation for what you're interested in doing. If you have any specific questions, I'd be happy to answer them for you.
    • Post Points: 0
  • 08-25-2003 8:58 AM In reply to

    • garatej
    • Not Ranked
    • Joined on 08-22-2003
    • Junior Member
    • Points 75

    Define new Local Ports

    I only speak a lite bit of English

    I need to know the name of the file on Windows to define a
    new LocalPort (UDP port) for a new application (Client/Server) of
    Files.

    Mi lenguaje es el Castellano.

    Thanks Javier
    • Post Points: 0
  • 01-25-2004 7:53 AM In reply to

    need help on socket programming

    Hi...

    im new to tcp programming using winsock control in Vusual Basic.
    i tried a client server chat program, in which there is a client program running and its
    communicting with a server program. when i tried with two clients communicating thru a server program..its not working...can you help me....please send the source code also..

    By
    Faisal
    • Post Points: 0
  • 03-24-2004 3:14 PM In reply to

    • section8
    • Not Ranked
    • Joined on 03-24-2004
    • New Member
    • Points 5
    I ran into this problem a long time ago, what you need to do is throw in a DoEvents call in the place where your server is handling the incomming and outgoing traffic.  I haven't made anything like that for awhile, but I'm pretty sure you do it in your loops, like:

    example:

    for each.. blah blah
    Winsock1.SendData blah
    DoEvents
    end for
    • Post Points: 0
  • 08-27-2004 1:17 AM In reply to

    • Anu2000
    • Not Ranked
    • Joined on 08-27-2004
    • New Member
    • Points 5

    Help

    Hi. I read ur message. I'm doing a (socket programming) chatty client/server messenger program too and I need lots of help. I heard you have done it. Could u send me ur source code and i could refer to it. Thanks alot it will help me greatly. By the way i'm using tcp.  
    • Post Points: 0
  • 12-15-2004 2:56 AM In reply to

    • ranaasim
    • Not Ranked
    • Joined on 12-14-2004
    • New Member
    • Points 65

    help for all programmers needing client server app

    there would b two applications one will be at server the other will be at client side
    i m sending this code asuming that u have some prior knowledge about network programming
    include this code at server side


    Private Sub listen_Click()

    Winsock1.LocalPort = 1002
    Winsock1.listen

    End Sub


    Private Sub cmdsend_Click()
    Winsock1.SendData chattxtbox.Text
    txtwindow.Text = txtwindow.Text & vbNewLine & chattxtbox.Text
    chattxtbox.Text = ""


    txtwindow.SelStart = Len(txtwindow)


    End Sub

    Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
    Winsock1.Close
    Winsock1.Accept requestID

    End Sub

    Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
    Dim txtwindowdata As String
    Winsock1.GetData txtwindowdata

    txtwindow.Text = txtwindow.Text & vbNewLine & txtwindowdata
    txtwindow.SelStart = Len(txtwindow)



    End Sub

    //include this one at client siderivate Sub cmdconnect_Click()

    Winsock1.RemoteHost = "127.0.0.1"
    Winsock1.RemotePort = 1002
    Winsock1.Connect


    End Sub




    Private Sub cmdsend_Click()
    Winsock1.SendData chattxtbox.Text
    rectxtwindow.Text = rectxtwindow.Text & vbNewLine & rectxtwindow.Text
    chattxtbox.Text = ""


    End Sub


    Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
    Dim txtfromserver As String
    Winsock1.GetData txtfromserver
    rectxtwindow.Text = rectxtwindow.Text & vbNewLine & txtfromserver
    rectxtwindow.SelStart = Len(rectxtwindow)



    End Sub

    Private Sub Winsock1_Connect()
    MsgBox "Connecting to Server....Plz stay  far n WAIT"
    End Sub


    this will make a client server chat applicatin with in a LAN

    • Post Points: 0
  • 02-06-2006 12:22 PM In reply to

    • Suganya
    • Not Ranked
    • Joined on 02-06-2006
    • New Member
    • Points 10

    Socket Application doubt

    Hi,

    Iam developing the socket application.In this the remote host is sending messages.But iam not able to pick all the messages sent by the remote host.If remote is sending 10 msgs,then iam able to pick 2 or 3 msgs.pls tell me,what could be the reason for that asap.

    Thank you.

    • Post Points: 0
  • 04-05-2006 8:19 AM In reply to

    • msshweta
    • Not Ranked
    • Joined on 04-05-2006
    • India
    • New Member
    • Points 15

    Re: [28] Introduction to TCP/IP

    hi i want to make socket connection for the multiple clients like i want to send the data to the server to the multiple clients how i will be able to do that. IS there anybody else who can help me. I am able to do that by socket programming but only in single system when i want to do that on multiple system then it is not possible.is there any one? its very needed.................................... thanks and bye

     

    • Post Points: 10
  • 08-25-2006 2:25 PM In reply to

    Re: [28] Introduction to TCP/IP

    hi

    This is possible using threads in the client program. the client can generate parallel connections using threads. so u can create multiple clients in the same system.


    In the server side, you use two sockets. One for receive the data and another for response to corresponding clients. Use the FD_SET, FD_ISSET functions to achieve this apps. This is reliable one
    Hope I may answered your question.

    Karthik









    • Post Points: 5
Page 1 of 1 (13 items)